org.robokind.api.motion
Class JointProperty.ReadOnly<T>

java.lang.Object
  extended by org.robokind.api.common.property.PropertyChangeNotifier
      extended by org.robokind.api.motion.JointProperty.ReadOnly<T>
Type Parameters:
T - Value Type returned by this JointProperty
All Implemented Interfaces:
org.robokind.api.common.property.PropertyChangeSource, JointProperty<T>
Direct Known Subclasses:
ReadCurrentPosition, ReadLoad, ReadSpeed, ReadTemperature, ReadVoltage
Enclosing interface:
JointProperty<T>

public abstract static class JointProperty.ReadOnly<T>
extends org.robokind.api.common.property.PropertyChangeNotifier
implements JointProperty<T>

Defines a JointProperty which can read but not write.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.robokind.api.motion.JointProperty
JointProperty.ReadOnly<T>, JointProperty.ReadWrite<T>
 
Constructor Summary
JointProperty.ReadOnly()
           
 
Method Summary
 boolean getReadable()
          Returns true if getValue() is supported.
 boolean getWriteable()
          Returns true if setValue(T val) is supported.
 void setValue(T val)
          Sets the value of the JointProperty.
 
Methods inherited from class org.robokind.api.common.property.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, 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.motion.JointProperty
getCachedValue, getDisplayName, getPropertyClass, getPropertyName, getValue
 
Methods inherited from interface org.robokind.api.common.property.PropertyChangeSource
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

JointProperty.ReadOnly

public JointProperty.ReadOnly()
Method Detail

getReadable

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

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

getWriteable

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

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

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


Copyright © 2011. All Rights Reserved.