de.xabsl.jxabslx.symbols
Class EnumeratedInputSymbolImpl
java.lang.Object
de.xabsl.jxabslx.symbols.InputSymbolImpl
de.xabsl.jxabslx.symbols.EnumeratedInputSymbolImpl
- All Implemented Interfaces:
- EnumeratedInputSymbol
public class EnumeratedInputSymbolImpl
- extends InputSymbolImpl
- implements EnumeratedInputSymbol
An implementation for an enumerated input symbol. Takes its values from an
Input object and converts it via an EnumeratedConversion
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
enumeration
protected Enumeration enumeration
EnumeratedInputSymbolImpl
public EnumeratedInputSymbolImpl(Enumeration enumeration,
Input input,
EnumeratedConversion conversion,
java.lang.String[] parameterNames,
Symbols symbols,
DebugMessages debug)
- Constructor.
- Parameters:
enumeration
- the enumeration which is the domain of this symbolinput
- A value comes from hereconversion
- Is converted via this conversionparameterNames
- parameter names in the correct ordersymbols
- the symbols of the enginedebug
- for debugging output
getValue
public java.lang.Object getValue()
- Description copied from interface:
EnumeratedInputSymbol
- Returns the symbol's value. Before calling this function, obtain the
parameters via
getParameters()
and set the parameter
values
- Specified by:
getValue
in interface EnumeratedInputSymbol
- Returns:
- the symbol's value
getEnumeration
public Enumeration getEnumeration()
- Specified by:
getEnumeration
in interface EnumeratedInputSymbol
- Returns:
- the enumeration that is the domain of the symbol