|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensor.xmldata.option.AbstractOption
public abstract class AbstractOption
The skeletal implementation of an option, which provides default implementations for the basic accessor methods. Sub-classes must override the abstract methods to provide functionality specific to their class type.
Constructor Summary | |
---|---|
AbstractOption(XmlDataController controller,
java.lang.String name,
java.util.List<java.lang.String> parameters)
Constructs this option with a controller, option name, and a list of parameters used to execute this option. |
Method Summary | |
---|---|
void |
execute()
Implements the execute method with the default execute behavior, which is to do nothing. |
XmlDataController |
getController()
Returns the controller which provides access to parameters processed in other options and global sensor operations. |
java.lang.String |
getName()
Returns the name of this option. |
java.util.List<java.lang.String> |
getParameters()
Returns a list of parameters used to execute this option. |
abstract boolean |
isValid()
Returns true if this option's parameters are valid. |
void |
process()
Implements the process method to provide the default process behavior, which is perform no parameter processing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractOption(XmlDataController controller, java.lang.String name, java.util.List<java.lang.String> parameters)
controller
- the specified controller.name
- the specified option name.parameters
- the specified parameters.Method Detail |
---|
public java.lang.String getName()
getName
in interface Option
public java.util.List<java.lang.String> getParameters()
getParameters
in interface Option
public void process()
process
in interface Option
public abstract boolean isValid()
isValid
in interface Option
public XmlDataController getController()
public void execute()
execute
in interface Option
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |