com.free2be.dimensions.decider
Class Decision

java.lang.Object
  extended by com.free2be.dimensions.decider.Decision

public class Decision
extends java.lang.Object

This class represents a decision, i.e. after analyzing the current situation, the engine "decides" which is the most currect decision among a set of suitable ones.


Constructor Summary
Decision()
          Creates a new instance of Decision
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks whether an object is equal to this decision.
 java.util.Set getParameterNameSet()
          Returns the set of all entered parameters.
 java.lang.String getParameterValue(java.lang.String parameterName)
          Returns the value of the given parameter.
 int hashCode()
          Calculate the hash code of the object.
 void removeParameter(java.lang.String parameterName)
          Removes a parameter from the decision.
 void setParameter(java.lang.String parameterName, java.lang.String parameterValue)
          Sets a parameter inside the decision.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Decision

public Decision()
Creates a new instance of Decision

Method Detail

getParameterNameSet

public java.util.Set getParameterNameSet()
Returns the set of all entered parameters.

Returns:
The set of all entered parameters.

getParameterValue

public java.lang.String getParameterValue(java.lang.String parameterName)
Returns the value of the given parameter.

Parameters:
parameterName - The name of the parameter.
Returns:
The value of the parameter.

setParameter

public void setParameter(java.lang.String parameterName,
                         java.lang.String parameterValue)
Sets a parameter inside the decision.

Parameters:
parameterName - The name of the parameter to set.
parameterValue - The value of the parameter.

removeParameter

public void removeParameter(java.lang.String parameterName)
Removes a parameter from the decision.

Parameters:
parameterName - The name of the parameter to remove.

equals

public boolean equals(java.lang.Object obj)
Checks whether an object is equal to this decision.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The object to test.
Returns:
Is the object equal to this?

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
The string representation.

hashCode

public int hashCode()
Calculate the hash code of the object. It is equal to a HashMap where the parameter names are the keys and the parameter values are the values.

Overrides:
hashCode in class java.lang.Object
Returns:
The required hash code.