|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.api.Parameter<T>
T - The data type of the parameter.public final class Parameter<T>
A parameter is a simple key-value pair used to parameterize SPR components.
The value may be any Java data type, but it must be compatible with the Sunrise type system. This means, that is must be possible to convert the given type into an ISerializableType. The ParameterSerializer-class offers a convert(...) method, where you can test if you object is compatible. If not, you can inherit your type from ISerializableType and then it will work.
| Constructor Summary | |
|---|---|
Parameter(String name,
T value)
Creates a new parameter. |
|
| Method Summary | |
|---|---|
String |
getName()
Gets the name of the parameter. |
T |
getValue()
Gets the value of this parameter. |
boolean |
hasSameDataAs(Object obj)
|
void |
setValue(T value)
Sets the value for this parameter. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Parameter(String name,
T value)
name - The name of the parameter.value - The value of the parameter.| Method Detail |
|---|
public String getName()
public void setValue(T value)
value - The value for this parameter.public T getValue()
public String toString()
toString in class Objectpublic boolean hasSameDataAs(Object obj)
hasSameDataAs in interface com.kuka.common.IDataEquatable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||