|
||||||||||
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 org.robokind.api.motion.servos.config.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. |
org.robokind.api.common.config.VersionProperty |
getControllerTypeVersion()
Returns the controller type VersionProperty. |
String |
getPortName()
Returns the port identifier. |
Map<Id,SC> |
getServoConfigs()
|
org.robokind.api.motion.servos.ServoController.Id |
getServoControllerId()
|
int |
getServoCount()
|
void |
propertyChange(PropertyChangeEvent evt)
|
void |
removeServoConfig(SC config)
|
protected void |
setBaudRate(BaudRate rate)
Sets port baud rate. |
void |
setControllerTypeVersion(org.robokind.api.common.config.VersionProperty version)
Sets the controller type VersionProperty. |
protected void |
setPortName(String port)
Sets port identifier. |
void |
setServoControllerId(org.robokind.api.motion.servos.ServoController.Id scId)
|
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.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 org.robokind.api.common.config.VersionProperty getControllerTypeVersion()
getControllerTypeVersion
in interface org.robokind.api.motion.servos.config.ServoControllerConfig<Id,SC extends org.robokind.api.motion.servos.config.ServoConfig<Id>>
public void setControllerTypeVersion(org.robokind.api.common.config.VersionProperty version)
setControllerTypeVersion
in interface org.robokind.api.motion.servos.config.ServoControllerConfig<Id,SC extends org.robokind.api.motion.servos.config.ServoConfig<Id>>
version
- controller type to setpublic String getPortName()
protected void setPortName(String port)
port
- port identifier to setpublic BaudRate getBaudRate()
protected void setBaudRate(BaudRate rate)
rate
- BaudRate to setpublic void addServoConfig(SC config)
addServoConfig
in interface org.robokind.api.motion.servos.config.ServoControllerConfig<Id,SC extends org.robokind.api.motion.servos.config.ServoConfig<Id>>
public void removeServoConfig(SC config)
removeServoConfig
in interface org.robokind.api.motion.servos.config.ServoControllerConfig<Id,SC extends org.robokind.api.motion.servos.config.ServoConfig<Id>>
public int getServoCount()
getServoCount
in interface org.robokind.api.motion.servos.config.ServoControllerConfig<Id,SC extends org.robokind.api.motion.servos.config.ServoConfig<Id>>
public Map<Id,SC> getServoConfigs()
getServoConfigs
in interface org.robokind.api.motion.servos.config.ServoControllerConfig<Id,SC extends org.robokind.api.motion.servos.config.ServoConfig<Id>>
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public org.robokind.api.motion.servos.ServoController.Id getServoControllerId()
getServoControllerId
in interface org.robokind.api.motion.servos.config.ServoControllerConfig<Id,SC extends org.robokind.api.motion.servos.config.ServoConfig<Id>>
public void setServoControllerId(org.robokind.api.motion.servos.ServoController.Id scId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |