objectgen.testobjective
Class AlternativeStore

java.lang.Object
  extended byobjectgen.testobjective.AlternativeStore
All Implemented Interfaces:
java.lang.Cloneable

public class AlternativeStore
extends java.lang.Object
implements java.lang.Cloneable

This class is a helper class of test objective generator class. This class stores decision nodes and their alternatives to avoid infinite loops


Constructor Summary
AlternativeStore()
          Creates a new instance of AlternativeStore
 
Method Summary
 void addDecision(Decision d)
          Deprecated.  
 void addDecision(Decision d, Alternative a)
          Add a desicion and an alternative of that decision A decision could have more than one alternative stored.
 java.lang.Object clone()
          Clones an AlternativeStore class
 boolean containsDecision(Decision d)
          Returns true if the store contains the decision Not deprecated but unuseful
 void deleteAlternative(Decision d)
          Deprecated.  
 java.util.Iterator iteratorFor(Decision d)
          Deprecated.  
 boolean stored(Decision d, Alternative a)
           
 java.lang.String toString()
          Testing purpouses only
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlternativeStore

public AlternativeStore()
Creates a new instance of AlternativeStore

Method Detail

containsDecision

public boolean containsDecision(Decision d)
Returns true if the store contains the decision Not deprecated but unuseful


addDecision

public void addDecision(Decision d)
Deprecated.  

Add a new decision and all its alternatives


addDecision

public void addDecision(Decision d,
                        Alternative a)
Add a desicion and an alternative of that decision A decision could have more than one alternative stored.


stored

public boolean stored(Decision d,
                      Alternative a)
Returns:
true if the decision and the alternive are stored

deleteAlternative

public void deleteAlternative(Decision d)
Deprecated.  

Deletes the first alternative in the stores that math with the first alternative of decision d


iteratorFor

public java.util.Iterator iteratorFor(Decision d)
Deprecated.  

Returns an iterator to traverse all the alternatives of the stored decision


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clones an AlternativeStore class

Throws:
java.lang.CloneNotSupportedException

toString

public java.lang.String toString()
Testing purpouses only