public class DynamicSPT extends java.lang.Object implements IDesignSpaceChangeHandler, IPathfinder
Modifier and Type | Class and Description |
---|---|
static class |
DynamicSPT.DynamicSPTMode |
Constructor and Description |
---|
DynamicSPT() |
Modifier and Type | Method and Description |
---|---|
SolutionTrajectory |
getBestTrajectoryCheaply(Solution s,
IState solutionState,
IStateCoderFactory stateCoderFactory)
Checks the underlying data structure to see if there is a better route to this solution than the currently known
best trajectory.
|
SolutionTrajectory |
getBestTrajectoryCostly(Solution s,
IState solutionState,
IStateCoderFactory stateCoderFactory)
Checks the underlying data structure and updates it to see if there is a better route to this solution than the
currently known best trajectory.
|
DynamicSPT.DynamicSPTMode |
getMode() |
void |
newRootAdded(IState state) |
void |
newStateAdded(IState state) |
void |
newTransitionAdded(ITransition transition) |
void |
refreshSPT() |
void |
setMode(DynamicSPT.DynamicSPTMode mode) |
void |
transitionFired(ITransition transition) |
public DynamicSPT.DynamicSPTMode getMode()
public void setMode(DynamicSPT.DynamicSPTMode mode)
public void refreshSPT()
public void newStateAdded(IState state)
newStateAdded
in interface IDesignSpaceChangeHandler
public void newTransitionAdded(ITransition transition)
newTransitionAdded
in interface IDesignSpaceChangeHandler
public void transitionFired(ITransition transition)
transitionFired
in interface IDesignSpaceChangeHandler
public void newRootAdded(IState state)
newRootAdded
in interface IDesignSpaceChangeHandler
public SolutionTrajectory getBestTrajectoryCheaply(Solution s, IState solutionState, IStateCoderFactory stateCoderFactory)
IPathfinder
getBestTrajectoryCheaply
in interface IPathfinder
public SolutionTrajectory getBestTrajectoryCostly(Solution s, IState solutionState, IStateCoderFactory stateCoderFactory)
IPathfinder
getBestTrajectoryCostly
in interface IPathfinder
s
- the Solution
object we wish to update.SolutionTrajectory
that represents the best trajectory we discovered so far.