org.robokind.api.motion.messaging
Class RemoteJointProperty<T>

java.lang.Object
  extended by org.robokind.api.common.property.PropertyChangeNotifier
      extended by org.robokind.api.motion.messaging.RemoteJointProperty<T>
All Implemented Interfaces:
org.robokind.api.common.property.PropertyChangeSource, JointProperty<T>

public class RemoteJointProperty<T>
extends org.robokind.api.common.property.PropertyChangeNotifier
implements JointProperty<T>

Author:
Matthew Stevenson

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.robokind.api.motion.JointProperty
JointProperty.ReadOnly<T>
 
Constructor Summary
RemoteJointProperty(String propertyName, String displayName, Class<T> propertyClass, T val, org.robokind.api.common.position.NormalizableRange<T> range)
           
 
Method Summary
 String getDisplayName()
          Returns the display name of the JointProperty.
 org.robokind.api.common.position.NormalizableRange<T> getNormalizableRange()
           
 Class<T> getPropertyClass()
          Returns the JointProperty's value Type.
 String getPropertyName()
          Returns the name of the JointProperty.
 T getValue()
          Returns the value for this JointProperty, and caches the value.
 boolean getWriteable()
          Returns true if getValue() is supported.
 void setValue(T val)
          Sets the value of the JointProperty.
 
Methods inherited from class org.robokind.api.common.property.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, clearListeners, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.robokind.api.common.property.PropertyChangeSource
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

RemoteJointProperty

public RemoteJointProperty(String propertyName,
                           String displayName,
                           Class<T> propertyClass,
                           T val,
                           org.robokind.api.common.position.NormalizableRange<T> range)
Method Detail

getPropertyName

public String getPropertyName()
Description copied from interface: JointProperty
Returns the name of the JointProperty.

Specified by:
getPropertyName in interface JointProperty<T>
Returns:
name of the JointProperty

getDisplayName

public String getDisplayName()
Description copied from interface: JointProperty
Returns the display name of the JointProperty.

Specified by:
getDisplayName in interface JointProperty<T>
Returns:
display name of the JointProperty

getPropertyClass

public Class<T> getPropertyClass()
Description copied from interface: JointProperty
Returns the JointProperty's value Type.

Specified by:
getPropertyClass in interface JointProperty<T>
Returns:
JointProperty's value Type

getWriteable

public boolean getWriteable()
Description copied from interface: JointProperty
Returns true if getValue() is supported.

Specified by:
getWriteable in interface JointProperty<T>
Returns:
true if getValue() is supported

getValue

public T getValue()
Description copied from interface: JointProperty
Returns the value for this JointProperty, and caches the value.

Specified by:
getValue in interface JointProperty<T>
Returns:
the value for this JointProperty, and caches the value

setValue

public void setValue(T val)
Description copied from interface: JointProperty
Sets the value of the JointProperty.

Specified by:
setValue in interface JointProperty<T>
Parameters:
val - the new value to set

getNormalizableRange

public org.robokind.api.common.position.NormalizableRange<T> getNormalizableRange()
Specified by:
getNormalizableRange in interface JointProperty<T>


Copyright © 2011-2013. All Rights Reserved.