TMST.representation
Class Input

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

public class Input
extends EntityType

Class for representing a input of a task or a problem solving method.

See Also:
Serialized Form

Constructor Summary
Input(Entity ent)
           
Input(TMST tmst, java.lang.String name, java.lang.String description, java.lang.String value)
          Constructor setting up the relation to a generic input entity all inputs are related to (makes explisit that the current entity is an input) and relates to the value of the input.
Input(TMST tmst, java.lang.String name, java.lang.String description, Value value)
          Constructor setting up the relation to a generic input entity all inputs are related to (makes explisit that the current entity is an input) and relates to the value of the input.
 
Method Summary
 Value getValue()
          Method returning the value of the input
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

Input

public Input(TMST tmst,
             java.lang.String name,
             java.lang.String description,
             java.lang.String value)
      throws NameAlreadyExistException
Constructor setting up the relation to a generic input entity all inputs are related to (makes explisit that the current entity is an input) and relates to the value of the input. Takes value as a string.

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

Input

public Input(Entity ent)
      throws EntityTypeNotMatchedException

Input

public Input(TMST tmst,
             java.lang.String name,
             java.lang.String description,
             Value value)
      throws NameAlreadyExistException
Constructor setting up the relation to a generic input entity all inputs are related to (makes explisit that the current entity is an input) and relates to the value of the input. Takes value as a value object.

Parameters:
tmst - The knowledge model which the input belongs to
name - The name of the input
description - The description of the input
value - The value of the input as a value object.
Method Detail

getValue

public Value getValue()
               throws AlreadyHasValueException
Method returning the value of the input

Returns:
Value The value of the input.
Throws:
AlreadyHasValueException

matches

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