TMST.representation
Class Output

java.lang.Object
  extended byEntityType
      extended byTMST.representation.Output

public class Output
extends EntityType

See Also:
Serialized Form

Constructor Summary
Output(Entity ent)
           
Output(TMST tmst, java.lang.String name, java.lang.String description, java.lang.String value)
          Constructor sets up an output entity by relating it to a generic output entity, and then relating the instace of an ouput (with a given name) to its value.
Output(TMST tmst, java.lang.String name, java.lang.String description, Value value)
          Constructor sets up an output entity by relating it to a generic output entity, and then relating the instace of an ouput (with a given name) to its value.
 
Method Summary
 Value getValue()
          Method returning the output value
static boolean matches(Entity value)
          Method which has to be overriden (from the class EntityType)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Output

public Output(TMST tmst,
              java.lang.String name,
              java.lang.String description,
              java.lang.String value)
       throws NameAlreadyExistException
Constructor sets up an output entity by relating it to a generic output entity, and then relating the instace of an ouput (with a given name) to its value. Here represented using a string.

Parameters:
tmst - The knowledge model the input belongs to
name - The name of the model
description - The description of the input
value - The value of the input represented using a string

Output

public Output(Entity ent)
       throws EntityTypeNotMatchedException

Output

public Output(TMST tmst,
              java.lang.String name,
              java.lang.String description,
              Value value)
       throws NameAlreadyExistException
Constructor sets up an output entity by relating it to a generic output entity, and then relating the instace of an ouput (with a given name) to its value. Here represented using a value object.

Parameters:
tmst - The knowledge model the input belongs to
name - The name of the model
description - The description of the input
value - The value of the input represented using a value object
Method Detail

getValue

public Value getValue()
               throws AlreadyHasValueException
Method returning the output value

Returns:
Value The value of the Output object
Throws:
AlreadyHasValueException

matches

public static boolean matches(Entity value)
Method which has to be overriden (from the class EntityType)

Parameters:
value - The entity to match againts