org.robokind.api.motion.servos.config
Interface ServoConfig<Id>

Type Parameters:
Id - Servo Id Type used
All Superinterfaces:
org.robokind.api.common.property.PropertyChangeSource
All Known Implementing Classes:
DefaultServoConfig

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

Configuration parameters defining a Servo.

Author:
Matthew Stevenson

Field Summary
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.
 
Method Summary
 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.
 
Methods inherited from interface org.robokind.api.common.property.PropertyChangeSource
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

PROP_ID

static final String PROP_ID
Property string for Servo logical id.

See Also:
Constant Field Values

PROP_NAME

static final String PROP_NAME
Property string for Servo name.

See Also:
Constant Field Values

PROP_MIN_POSITION

static final String PROP_MIN_POSITION
Property string for Servo minimum position.

See Also:
Constant Field Values

PROP_MAX_POSITION

static final String PROP_MAX_POSITION
Property string for Servo maximum position.

See Also:
Constant Field Values

PROP_DEF_POSITION

static final String PROP_DEF_POSITION
Property string for Servo default position.

See Also:
Constant Field Values
Method Detail

getServoId

Id getServoId()
Returns the Servo id.

Returns:
Servo id

setServoId

void setServoId(Id id)
Sets the Servo id.

Parameters:
id - new Servo id

getName

String getName()
Returns the Servo name.

Returns:
Servo name

setName

void setName(String name)
Sets the Servo name.

Parameters:
name - new Servo name

getMinPosition

int getMinPosition()
Returns the Servo minimum position.

Returns:
Servo minimum position

setMinPosition

void setMinPosition(Integer pos)
Sets the Servo minimum position.

Parameters:
pos - new Servo minimum position

getMaxPosition

int getMaxPosition()
Returns the Servo maximum position.

Returns:
Servo maximum position

setMaxPosition

void setMaxPosition(Integer pos)
Sets the Servo maximum position.

Parameters:
pos - new Servo maximum position

getDefaultPosition

int getDefaultPosition()
Returns the Servo default position.

Returns:
Servo default position

setDefaultPosition

void setDefaultPosition(Integer pos)
Sets the Servo default position.

Parameters:
pos - new Servo default position


Copyright © 2011-2013. All Rights Reserved.