de.xabsl.jxabslx.symbols
Class EnumeratedInputSymbolImpl

java.lang.Object
  extended by de.xabsl.jxabslx.symbols.InputSymbolImpl
      extended by 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


Field Summary
protected  Enumeration enumeration
           
 
Fields inherited from class de.xabsl.jxabslx.symbols.InputSymbolImpl
input, parameters
 
Constructor Summary
EnumeratedInputSymbolImpl(Enumeration enumeration, Input input, EnumeratedConversion conversion, java.lang.String[] parameterNames, Symbols symbols, DebugMessages debug)
          Constructor.
 
Method Summary
 Enumeration getEnumeration()
           
 java.lang.Object getValue()
          Returns the symbol's value.
 
Methods inherited from class de.xabsl.jxabslx.symbols.InputSymbolImpl
checkConstructorArguments, createParameters, getParameters, getRawValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.xabsl.jxabsl.symbols.EnumeratedInputSymbol
getParameters
 

Field Detail

enumeration

protected Enumeration enumeration
Constructor Detail

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 symbol
input - A value comes from here
conversion - Is converted via this conversion
parameterNames - parameter names in the correct order
symbols - the symbols of the engine
debug - for debugging output
Method Detail

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