TMST.representation
Class Assumption

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

public class Assumption
extends EntityType

Class describing assumptions of problem solving methds. Assumptions may be classified in a specialization hierarchy. This classification is based on the paper Assumptions of PSMs by Benjamins and Pierret-Golbreich:

There is only four different classes in the implementation, namly: Thus, the superclass of epistemological assumption has been avoided, and it has not been made explicit for the sake of simplicity.

See Also:
Serialized Form

Constructor Summary
Assumption(Entity ent)
           
Assumption(TMST tmst, java.lang.String name, java.lang.String description, int assType, java.lang.String value)
          The constructor of assumptions initializes a new assumption object by setting up the properties and ensuring that the superclasses of assumption and the assumption type is in the model.
 
Method Summary
 AssumptionType getType()
          Method returning the type of an assumption
 Value getValue()
          Method returning the value of the assumption.
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

Assumption

public Assumption(TMST tmst,
                  java.lang.String name,
                  java.lang.String description,
                  int assType,
                  java.lang.String value)
           throws NameAlreadyExistException,
                  java.lang.Exception
The constructor of assumptions initializes a new assumption object by setting up the properties and ensuring that the superclasses of assumption and the assumption type is in the model. There exist four different types of assumptions, which are listed in the field summary.

Parameters:
tmst - The knowledge model this assuption is a part of.
name - The name of the assumption
description - The description, as words, of what is being assumed
assType - The type of assumption being instatiated
value - A string representing the value of this assumption

Assumption

public Assumption(Entity ent)
           throws EntityTypeNotMatchedException
Method Detail

getType

public AssumptionType getType()
                       throws java.lang.Exception
Method returning the type of an assumption

Returns:
AssumptionType The type od the assuption
Throws:
java.lang.Exception

getValue

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

Returns:
Value The value of the assumption
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 against this entity type
Returns:
boolean Returns true if the entity value is of this entity type.