jopt.js.spi.search.actions
Class InstantiateActivityStartTimeThenResourceAction
java.lang.Object
jopt.csp.spi.search.tree.AbstractSearchNodeAction
jopt.js.spi.search.actions.InstantiateActivityStartTimeThenResourceAction
- All Implemented Interfaces:
- jopt.csp.search.SearchAction
- public class InstantiateActivityStartTimeThenResourceAction
- extends jopt.csp.spi.search.tree.AbstractSearchNodeAction
Action that will "instantiate" an activity by assigning it a start time and then a resource.
If no selector is specified, the earliest available start time of the activity will be used.
Constructor Summary |
InstantiateActivityStartTimeThenResourceAction(jopt.js.api.variable.Activity activity,
jopt.js.api.search.StartTimeSelector startTimeSelector,
jopt.js.api.search.ResourceSelector resSelector,
jopt.js.api.search.ResourceSetSelector resSetSelector)
Creates new instantiate activity start time then resource action |
Method Summary |
jopt.csp.search.SearchAction |
performAction()
Assigns a start time and resource to each activity |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InstantiateActivityStartTimeThenResourceAction
public InstantiateActivityStartTimeThenResourceAction(jopt.js.api.variable.Activity activity,
jopt.js.api.search.StartTimeSelector startTimeSelector,
jopt.js.api.search.ResourceSelector resSelector,
jopt.js.api.search.ResourceSetSelector resSetSelector)
- Creates new instantiate activity start time then resource action
- Parameters:
activity
- activity to instantiatestartTimeSelector
- selector to select which start time to try nextresSelector
- resource selector to select which resource to try to assign to nextresSetSelector
- resource set selector to select which set of resources to try to assign next
performAction
public jopt.csp.search.SearchAction performAction()
throws jopt.csp.variable.PropagationFailureException
- Assigns a start time and resource to each activity
- Returns:
- the next step in the search process
- Throws:
jopt.csp.variable.PropagationFailureException
toString
public java.lang.String toString()