|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.nav.fleet.graph.properties.DefaultPropertyHolder
public class DefaultPropertyHolder
Abstract base class for all property holders.
| Field Summary |
|---|
| Fields inherited from interface com.kuka.nav.fleet.graph.properties.PropertyHolder |
|---|
ROBOTTYPEALL |
| Constructor Summary | |
|---|---|
DefaultPropertyHolder()
Constructs a new, empty property holder. |
|
| Method Summary | ||
|---|---|---|
PropertyHolder |
add(Integer robotTypeId,
Property property)
Adds the given property to this property holder. |
|
PropertyHolder |
add(Property property)
Adds the given property to this property holder. |
|
PropertyHolder |
addAll(Collection<com.kuka.util.Pair<Integer,Property>> entries)
Adds a number of property entries to this property holder. |
|
void |
addPropertyHolderListener(PropertyHolderListener listener)
Adds the given listener. |
|
Object |
clone()
Clones the property holder (method is protected in Object) |
|
|
containsAny(Class<T> propertyType)
Checks if for any robot type the given property type exists. |
|
Collection<com.kuka.util.Pair<Integer,Property>> |
entries()
|
|
boolean |
equals(Object o)
|
|
void |
firePropertyHolderChanged()
Notifies all contained listeners that this property holder has changed. |
|
|
get(Class<T> propertyType)
Returns the value of the property with the specified type or null if it does not exist. |
|
|
get(Integer robotTypeId,
Class<T> propertyType)
If the property of the specified type is associated to the given robot type or all robot types, the value of this property is returned. |
|
Collection<Property> |
getAll()
|
|
Collection<Property> |
getAll(Integer robotTypeId)
|
|
Integer |
getCorrespondingRobotType(Property property)
Returns the corresponding robot type id. |
|
|
getSpecific(Integer robotTypeId,
Class<T> propertyType)
If the property of the specified type is associated to the given robot type, the value of this property is returned. |
|
|
getSuperProperty(Integer robotTypeId,
Class<T> superPropertyType)
Checks whether the property holder has a property for the given robot type that is a subclass of the given super property type. |
|
int |
hashCode()
|
|
PropertyHolder |
remove(Class<? extends Property> propertyType)
Removes the property from this property holder. |
|
PropertyHolder |
remove(Integer robotTypeId,
Class<? extends Property> propertyType)
Removes the property associated with the given robot type from this property holder. |
|
PropertyHolder |
removeAny(Class<? extends Property> propertyType)
Removes the properties associated with any robot type from this property holder and returns it. |
|
void |
removePropertyHolderListener(PropertyHolderListener listener)
Removes the given listener. |
|
String |
toString()
|
|
Collection<Property> |
values()
|
|
|
values(Class<T> propertyType)
Returns a collection of all properties of the given type. |
|
Collection<Property> |
values(Integer robotTypeId)
Returns a collection of all properties for the given robot type. |
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPropertyHolder()
| Method Detail |
|---|
public PropertyHolder add(Property property)
PropertyHolder
add in interface PropertyHolderproperty - The property to add.
public PropertyHolder add(Integer robotTypeId,
Property property)
PropertyHolder
add in interface PropertyHolderrobotTypeId - the robot type identifierproperty - the property to add
public PropertyHolder addAll(Collection<com.kuka.util.Pair<Integer,Property>> entries)
PropertyHolder
addAll in interface PropertyHolderentries - a collection of entries of property and associated robot type
id
public PropertyHolder remove(Class<? extends Property> propertyType)
PropertyHolder
remove in interface PropertyHolderpropertyType - The property type to remove.
public PropertyHolder remove(Integer robotTypeId,
Class<? extends Property> propertyType)
PropertyHolder
remove in interface PropertyHolderrobotTypeId - the robotpropertyType - The property type to remove.
public PropertyHolder removeAny(Class<? extends Property> propertyType)
PropertyHolder
removeAny in interface PropertyHolderpropertyType - The property type to remove.
public <T extends Property> T get(Class<T> propertyType)
PropertyHolder
get in interface PropertyHolderT - the type of the propertypropertyType - The type of the property.
public <T extends Property> T get(Integer robotTypeId,
Class<T> propertyType)
PropertyHoldernull is returned.
get in interface PropertyHolderT - the type of the propertyrobotTypeId - the robot type idpropertyType - The type of the property.
public <T extends Property> T getSpecific(Integer robotTypeId,
Class<T> propertyType)
PropertyHoldernull is returned.
getSpecific in interface PropertyHolderT - the type of the propertyrobotTypeId - the robot type idpropertyType - The type of the property.
public Collection<Property> getAll()
getAll in interface PropertyHolderpublic Collection<Property> getAll(Integer robotTypeId)
getAll in interface PropertyHolderrobotTypeId - a robot type id
public <T extends Property> T getSuperProperty(Integer robotTypeId,
Class<T> superPropertyType)
PropertyHoldernull is returned.
getSuperProperty in interface PropertyHolderT - the type of the super property.robotTypeId - the robot type id.superPropertyType - the super property.
public Collection<Property> values()
values in interface PropertyHolderpublic <T extends Property> Collection<T> values(Class<T> propertyType)
PropertyHolder
values in interface PropertyHolderT - the type of the propertypropertyType - the property type
public Collection<Property> values(Integer robotTypeId)
PropertyHolder
values in interface PropertyHolderrobotTypeId - a robot type id
public Collection<com.kuka.util.Pair<Integer,Property>> entries()
entries in interface PropertyHolderpublic Integer getCorrespondingRobotType(Property property)
PropertyHolder
getCorrespondingRobotType in interface PropertyHolderproperty - the property
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic <T extends Property> boolean containsAny(Class<T> propertyType)
PropertyHolder
containsAny in interface PropertyHolderT - the type of the propertypropertyType - the property type
true if for any robot type the given property type exists, false otherwisepublic void addPropertyHolderListener(PropertyHolderListener listener)
PropertyHolder
addPropertyHolderListener in interface PropertyHolderlistener - the listener to addpublic void removePropertyHolderListener(PropertyHolderListener listener)
PropertyHolder
removePropertyHolderListener in interface PropertyHolderlistener - the listener to removepublic void firePropertyHolderChanged()
PropertyHolder
firePropertyHolderChanged in interface PropertyHolderpublic Object clone()
PropertyHolder
clone in interface PropertyHolderclone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||