pilot.controls
Class AbstractControl

java.lang.Object
  |
  +--pilot.controls.AbstractControl
Direct Known Subclasses:
IntervalControl, OptionControl

public abstract class AbstractControl
extends java.lang.Object


Field Summary
protected  java.util.Vector choices_
          The collection of choices of the control.
protected  java.lang.Class controlClass_
          The class of the values of the control.
protected  java.lang.String name_
          The name of the control.
protected  java.lang.Object parent_
          The object that initiates the control.
protected  java.lang.String type_
          The type of control.
 
Constructor Summary
AbstractControl()
           
 
Method Summary
 java.util.Vector getChoices()
          The method getChoices returns the choices the values that are possible for this control.
 java.lang.Class getControlClass()
          The method setControlClass returns the clas of the values of the control
abstract  java.lang.Integer getControlClassifiedValue(java.lang.Object value)
          The method getControlClassifiedValue takes a value and maps it to a value class.
abstract  java.lang.Integer getControlValue()
          The method getControlValue measures the current value of the control.
 java.lang.String getName()
          The method getName returns the name of the control.
 java.lang.Object getParent()
          The method getParent returns the object that initiated this object.
 java.lang.String getType()
          The method getType returns the type of control.
 void setChoices(java.util.Vector choices)
          The method setChoices defines the choices of the values that are possible for this control.
 void setControlClass(java.lang.String className)
          The method setControlClass sets the clas of the values of the control
 void setName(java.lang.String name)
          The method setName sets the name of the control.
 void setParent(java.lang.Object parent)
          The method setParent sets the object that initiated this object.
 void setType(java.lang.String type)
          The method setType sets the type of control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name_

protected java.lang.String name_
The name of the control.

type_

protected java.lang.String type_
The type of control.

choices_

protected java.util.Vector choices_
The collection of choices of the control.

parent_

protected java.lang.Object parent_
The object that initiates the control.

controlClass_

protected java.lang.Class controlClass_
The class of the values of the control.
Constructor Detail

AbstractControl

public AbstractControl()
Method Detail

getControlValue

public abstract java.lang.Integer getControlValue()
The method getControlValue measures the current value of the control.
Returns:
The classified value of the control is returned.

getControlClassifiedValue

public abstract java.lang.Integer getControlClassifiedValue(java.lang.Object value)
The method getControlClassifiedValue takes a value and maps it to a value class.
Parameters:
value - The measured value.
Returns:
The value class.

setName

public void setName(java.lang.String name)
The method setName sets the name of the control.
Parameters:
name - The name of the control.

getName

public java.lang.String getName()
The method getName returns the name of the control.
Returns:
The name of the control.

setChoices

public void setChoices(java.util.Vector choices)
The method setChoices defines the choices of the values that are possible for this control.
Parameters:
choices - Vector with choices.

getChoices

public java.util.Vector getChoices()
The method getChoices returns the choices the values that are possible for this control.
Returns:
Vector with choices.

setType

public void setType(java.lang.String type)
The method setType sets the type of control.
Parameters:
type - The type of control

getType

public java.lang.String getType()
The method getType returns the type of control.
Returns:
The type of control

setParent

public void setParent(java.lang.Object parent)
The method setParent sets the object that initiated this object.
Parameters:
parent - The object that initiated this object

getParent

public java.lang.Object getParent()
The method getParent returns the object that initiated this object.
Returns:
parent The object that initiated this object

setControlClass

public void setControlClass(java.lang.String className)
The method setControlClass sets the clas of the values of the control
Parameters:
className - The name of the class

getControlClass

public java.lang.Class getControlClass()
The method setControlClass returns the clas of the values of the control
Returns:
The class of the values of the control.