All Packages  This Package  Class Hierarchy  Class Search  Index

Class aima.search.Successor

java.lang.Object
   |
   +----aima.search.Successor

Bundles together a new state, the name of the operator used to get there, and the cost of the operation.


public final class  Successor
     extends java.lang.Object
{
          // Fields 3
     protected float cost;
     protected String operatorName;
     protected State state;

          // Constructors 1
     public Successor(State, String, float);

          // Methods 3
     public float getCost();
     public String getOperatorName();
     public State getState();
}



Fields


state

   protected State state

Successor State


operatorName

   protected String operatorName

Operation to reach successor


cost

   protected float cost

Cost of operation



Constructors


Successor

   public Successor(State state, 
                    String operatorName, 
                    float cost) 

Constructor sets all values of successor object.




Methods


getOperatorName

   public String getOperatorName() 

Returns string describing operation.



getCost

   public float getCost() 

Returns cost of performing operation.



getState

   public State getState() 

Returns new state.



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4