ix.iplan
Class Alternative

java.lang.Object
  extended by ix.iplan.Alternative
All Implemented Interfaces:
Slip.Step, java.lang.Runnable
Direct Known Subclasses:
SlipExpandNode.Resume, SlipFindExecutable.ExpandGoalAlt, SlipFindExecutable.ExpandLaterAlt, SlipFindExecutable.Resume, SlipFindExecutable.SatisfyByAchieveAlt, SlipSatisfyConds.ResumeSatisfaction

public abstract class Alternative
extends java.lang.Object
implements Slip.Step

Alternative -- a backtrack point.


Field Summary
protected  Context context
           
protected  double cost
           
protected  boolean isLocalChoice
           
 
Constructor Summary
Alternative()
           
 
Method Summary
protected  double calcCost(Slip slip)
           
protected  java.lang.String extraToStringContents()
           
 Context getContext()
           
 double getCost()
           
 boolean isLocalChoice()
           
 void setCost(Slip slip)
           
 void setIsLocalChoice(boolean v)
           
 java.lang.String toString()
           
 void whenPicked()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

context

protected Context context

cost

protected double cost

isLocalChoice

protected boolean isLocalChoice
Constructor Detail

Alternative

public Alternative()
Method Detail

getContext

public Context getContext()

getCost

public double getCost()

setCost

public void setCost(Slip slip)

calcCost

protected double calcCost(Slip slip)

isLocalChoice

public boolean isLocalChoice()

setIsLocalChoice

public void setIsLocalChoice(boolean v)

whenPicked

public void whenPicked()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

extraToStringContents

protected java.lang.String extraToStringContents()