cdx.scorebot.util.config
Class ConfigBoolean

java.lang.Object
  extended by cdx.scorebot.util.config.ConfigOption<java.lang.Boolean>
      extended by cdx.scorebot.util.config.ConfigBoolean
All Implemented Interfaces:
java.io.Serializable

public class ConfigBoolean
extends ConfigOption<java.lang.Boolean>
implements java.io.Serializable

Implements Boolean as a configuration option

Author:
David Underhill
See Also:
Serialized Form

Field Summary
 
Fields inherited from class cdx.scorebot.util.config.ConfigOption
possValues
 
Constructor Summary
ConfigBoolean(java.lang.Boolean option)
          Instantiates a ConfigOption with a ComponType BINARY.
 
Method Summary
 java.util.Vector<java.lang.Boolean> getAllowedValuesCopy()
          gets a COPY of the possible values this component may take on (only used if ComponType is MULTI).
 ConfigOption getShortCopy()
          Returns a copy of this configuration option.
 
Methods inherited from class cdx.scorebot.util.config.ConfigOption
addValue, equals, getComponType, getCurrentValue, getCurrentValueIndex, getName, getType, getValue, getValues, getVarianceType, nextValue, removeValue, setCurrentValue, setName, setVarianceType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigBoolean

public ConfigBoolean(java.lang.Boolean option)
Instantiates a ConfigOption with a ComponType BINARY.

Parameters:
option - initial value of the option
Method Detail

getAllowedValuesCopy

public java.util.Vector<java.lang.Boolean> getAllowedValuesCopy()
gets a COPY of the possible values this component may take on (only used if ComponType is MULTI).

Specified by:
getAllowedValuesCopy in class ConfigOption<java.lang.Boolean>
Returns:
COPY of the possible values the component may take on if it is of type MULTI

getShortCopy

public ConfigOption getShortCopy()
Description copied from class: ConfigOption
Returns a copy of this configuration option. The copy will only contain the current value as returned by getOption. None of the "allowed values" other than the currently selected value will be included in this copy. A reference to the current possible values will be included since they are read-only.

Specified by:
getShortCopy in class ConfigOption<java.lang.Boolean>
Returns:
a deep copy of this ConfigOption which only contains the current value