org.robokind.api.motion.servos.config
Interface ServoControllerConfig<Id,ServoConf extends ServoConfig<Id>>

Type Parameters:
Id - Servo Id Type
ServoConf - ServoConfig type used by the ServoControllerConfig
All Superinterfaces:
org.robokind.api.common.property.PropertyChangeSource

public interface ServoControllerConfig<Id,ServoConf extends ServoConfig<Id>>
extends org.robokind.api.common.property.PropertyChangeSource

Parameters needed to initialize a ServoController.

Author:
Matthew Stevenson

Field Summary
static String PROP_CONTROLLER_TYPE
          Property string for the ServoControllerConfig ControllerTypeVersion.
static String PROP_SERVO_ADD
          Property string for the ServoControllerConfig AddServo.
static String PROP_SERVO_REMOVE
          Property string for the ServoControllerConfig RemoveServo.
static String PROP_SERVOS
          Property string for the ServoControllerConfig Servos.
 
Method Summary
 void addServoConfig(ServoConf config)
          Adds a ServoConfig to the ServoControllerConfig.
 org.robokind.api.common.config.VersionProperty getControllerTypeVersion()
          Returns ControllerType VersionProperty.
 Map<Id,ServoConf> getServoConfigs()
          Returns a map of ids and ServoConfigs.
 ServoController.Id getServoControllerId()
          Returns the Id of the ServoController.
 int getServoCount()
          Returns the number of Servos in the ServoControllerConfig.
 void removeServoConfig(ServoConf config)
          Removes a ServoConfig from the ServoControllerConfig.
 void setControllerTypeVersion(org.robokind.api.common.config.VersionProperty version)
          Sets ControllerType VersionProperty.
 
Methods inherited from interface org.robokind.api.common.property.PropertyChangeSource
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

PROP_CONTROLLER_TYPE

static final String PROP_CONTROLLER_TYPE
Property string for the ServoControllerConfig ControllerTypeVersion.

See Also:
Constant Field Values

PROP_SERVO_ADD

static final String PROP_SERVO_ADD
Property string for the ServoControllerConfig AddServo.

See Also:
Constant Field Values

PROP_SERVO_REMOVE

static final String PROP_SERVO_REMOVE
Property string for the ServoControllerConfig RemoveServo.

See Also:
Constant Field Values

PROP_SERVOS

static final String PROP_SERVOS
Property string for the ServoControllerConfig Servos.

See Also:
Constant Field Values
Method Detail

getServoControllerId

ServoController.Id getServoControllerId()
Returns the Id of the ServoController.

Returns:
Id of the ServoController

getControllerTypeVersion

org.robokind.api.common.config.VersionProperty getControllerTypeVersion()
Returns ControllerType VersionProperty.

Returns:
ControllerType VersionProperty

setControllerTypeVersion

void setControllerTypeVersion(org.robokind.api.common.config.VersionProperty version)
Sets ControllerType VersionProperty.

Parameters:
version - new ControllerType VersionProperty

getServoCount

int getServoCount()
Returns the number of Servos in the ServoControllerConfig.

Returns:
number of Servos in the ServoControllerConfig

getServoConfigs

Map<Id,ServoConf> getServoConfigs()
Returns a map of ids and ServoConfigs.

Returns:
map of ids and ServoConfigs

addServoConfig

void addServoConfig(ServoConf config)
Adds a ServoConfig to the ServoControllerConfig.

Parameters:
config - ServoConfig to add

removeServoConfig

void removeServoConfig(ServoConf config)
Removes a ServoConfig from the ServoControllerConfig.

Parameters:
config - ServoConfig to remove


Copyright © 2011-2013. All Rights Reserved.