Id - Servo Id Type usedpublic interface ServoConfig<Id> extends PropertyChangeSource
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_DEF_POSITION
Property string for Servo default position.
|
static String |
PROP_ID
Property string for Servo logical id.
|
static String |
PROP_MAX_POSITION
Property string for Servo maximum position.
|
static String |
PROP_MIN_POSITION
Property string for Servo minimum position.
|
static String |
PROP_NAME
Property string for Servo name.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDefaultPosition()
Returns the Servo default position.
|
int |
getMaxPosition()
Returns the Servo maximum position.
|
int |
getMinPosition()
Returns the Servo minimum position.
|
String |
getName()
Returns the Servo name.
|
Id |
getServoId()
Returns the Servo id.
|
void |
setDefaultPosition(Integer pos)
Sets the Servo default position.
|
void |
setMaxPosition(Integer pos)
Sets the Servo maximum position.
|
void |
setMinPosition(Integer pos)
Sets the Servo minimum position.
|
void |
setName(String name)
Sets the Servo name.
|
void |
setServoId(Id id)
Sets the Servo id.
|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerstatic final String PROP_ID
static final String PROP_NAME
static final String PROP_MIN_POSITION
static final String PROP_MAX_POSITION
static final String PROP_DEF_POSITION
Id getServoId()
void setServoId(Id id)
id - new Servo idString getName()
void setName(String name)
name - new Servo nameint getMinPosition()
void setMinPosition(Integer pos)
pos - new Servo minimum positionint getMaxPosition()
void setMaxPosition(Integer pos)
pos - new Servo maximum positionint getDefaultPosition()
void setDefaultPosition(Integer pos)
pos - new Servo default positionCopyright © 2011-2014. All Rights Reserved.