SMILA 1.0 API documentation

org.eclipse.smila.jobmanager.definitions
Class WorkerDefinition.InputOutput<T extends java.lang.Enum<T>>

java.lang.Object
  extended by org.eclipse.smila.jobmanager.definitions.WorkerDefinition.InputOutput<T>
Type Parameters:
T - The Modes to use.
Direct Known Subclasses:
WorkerDefinition.Input, WorkerDefinition.Output
Enclosing class:
WorkerDefinition

public abstract static class WorkerDefinition.InputOutput<T extends java.lang.Enum<T>>
extends java.lang.Object

A helper class to represent Input or Output nodes for worker definitions.


Constructor Summary
WorkerDefinition.InputOutput(AnyMap any)
          Constructs an input or putput from an Any.
 
Method Summary
protected abstract  T getMode(java.lang.String modeName)
          Gets the Mode for the given modeName.
 java.util.Collection<T> getModes()
           
 java.lang.String getName()
           
 java.lang.String getType()
           
 Any toAny()
          Converts the object to an Any.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkerDefinition.InputOutput

public WorkerDefinition.InputOutput(AnyMap any)
                             throws InvalidDefinitionException
Constructs an input or putput from an Any.

Parameters:
any - The Any object from which this instance should be constructed.
Throws:
InvalidDefinitionException - An error occurred during the conversion of the Any object.
Method Detail

getMode

protected abstract T getMode(java.lang.String modeName)
Gets the Mode for the given modeName.

Parameters:
modeName - The mode name.
Returns:
The Mode (instance of T)

getName

public java.lang.String getName()
Returns:
the name

getType

public java.lang.String getType()
Returns:
the type

getModes

public java.util.Collection<T> getModes()
Returns:
the modes

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

toAny

public Any toAny()
          throws java.lang.Exception
Converts the object to an Any.

Returns:
The object as Any.
Throws:
java.lang.Exception - exception while converting object to Any.

SMILA 1.0 API documentation