|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.robokind.api.common.property.PropertyChangeNotifier
org.robokind.impl.motion.serial.SerialServoControllerConfig<Id,SC>
public class SerialServoControllerConfig<Id,SC extends ServoConfig<Id>>
| Field Summary | |
|---|---|
static String |
PROP_BAUD_RATE
Property string for SerialServoControllerConfig baud rate. |
static String |
PROP_PORT_NAME
Property string for SerialServoControllerConfig port name. |
| Fields inherited from interface org.robokind.api.motion.servos.config.ServoControllerConfig |
|---|
PROP_CONTROLLER_TYPE, PROP_SERVO_ADD, PROP_SERVO_REMOVE, PROP_SERVOS |
| Constructor Summary | |
|---|---|
protected |
SerialServoControllerConfig()
Creates an empty SerialServoControllerConfig. |
|
SerialServoControllerConfig(String portName,
BaudRate baud)
Creates a new SerialServoControllerConfig with the given port name and baud rate. |
| Method Summary | |
|---|---|
void |
addServoConfig(SC config)
|
BaudRate |
getBaudRate()
Returns port baud rate. |
VersionProperty |
getControllerTypeVersion()
Returns the controller type VersionProperty. |
String |
getPortName()
Returns the port identifier. |
Map<Id,SC> |
getServoConfigs()
|
ServoController.Id |
getServoControllerId()
|
int |
getServoCount()
|
void |
propertyChange(PropertyChangeEvent evt)
|
void |
removeServoConfig(SC config)
|
void |
setBaudRate(BaudRate rate)
Sets port baud rate. |
void |
setControllerTypeVersion(VersionProperty version)
Sets the controller type VersionProperty. |
void |
setPortName(String port)
Sets port identifier. |
void |
setServoControllerId(ServoController.Id scId)
|
| 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 |
| Field Detail |
|---|
public static final String PROP_PORT_NAME
public static final String PROP_BAUD_RATE
| Constructor Detail |
|---|
public SerialServoControllerConfig(String portName,
BaudRate baud)
portName - port identifierbaud - baud rateprotected SerialServoControllerConfig()
| Method Detail |
|---|
public VersionProperty getControllerTypeVersion()
getControllerTypeVersion in interface ServoControllerConfig<Id,SC extends ServoConfig<Id>>public void setControllerTypeVersion(VersionProperty version)
setControllerTypeVersion in interface ServoControllerConfig<Id,SC extends ServoConfig<Id>>version - controller type to setpublic String getPortName()
public void setPortName(String port)
port - port identifier to setpublic BaudRate getBaudRate()
public void setBaudRate(BaudRate rate)
rate - BaudRate to setpublic void addServoConfig(SC config)
addServoConfig in interface ServoControllerConfig<Id,SC extends ServoConfig<Id>>public void removeServoConfig(SC config)
removeServoConfig in interface ServoControllerConfig<Id,SC extends ServoConfig<Id>>public int getServoCount()
getServoCount in interface ServoControllerConfig<Id,SC extends ServoConfig<Id>>public Map<Id,SC> getServoConfigs()
getServoConfigs in interface ServoControllerConfig<Id,SC extends ServoConfig<Id>>public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic ServoController.Id getServoControllerId()
getServoControllerId in interface ServoControllerConfig<Id,SC extends ServoConfig<Id>>public void setServoControllerId(ServoController.Id scId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||