public class ActivityNetworkSolver extends MultiConstraintSolver
MultiConstraintSolver.OPTIONS| Modifier and Type | Field and Description |
|---|---|
protected long |
horizon |
protected int |
IDs |
protected static int |
MAX_ACTIVITIES |
protected long |
origin |
constraintSolvers, ingredientsautoprop, components, constraintTypes, logger, name, nesting, noPropOnVarCreation, numcalls, skipPropagation, spacing, theNetwork, variableType| Modifier | Constructor and Description |
|---|---|
protected |
ActivityNetworkSolver(java.lang.Class<?>[] constraintTypes,
java.lang.Class<?> variableType,
ConstraintSolver[] internalSolvers,
int[] ingredients,
long origin,
long horizon) |
|
ActivityNetworkSolver(long origin,
long horizon) |
|
ActivityNetworkSolver(long origin,
long horizon,
int numActivities) |
|
ActivityNetworkSolver(long origin,
long horizon,
int numActivities,
java.lang.String[] symbols) |
|
ActivityNetworkSolver(long origin,
long horizon,
java.lang.String[] symbols) |
| Modifier and Type | Method and Description |
|---|---|
int |
bookmark() |
protected static ConstraintSolver[] |
createConstraintSolvers(long origin,
long horizon,
int numActivities) |
protected static ConstraintSolver[] |
createConstraintSolvers(long origin,
long horizon,
int numActivities,
java.lang.String[] symbols) |
void |
drawAsGantt()
Draw all activities on Gantt chart
|
void |
drawAsGantt(java.lang.String varsMatchingThis)
Draw variables matching this
String on Gantt chart |
void |
drawAsGantt(java.util.Vector<java.lang.String> selectedVariableNames)
Draw selected variables on Gantt chart
|
SymbolicVariableActivity[] |
getActivitiesWithSymbols(java.lang.String[] values) |
SymbolicVariableActivity[] |
getActivitiesWithSymbols(java.lang.String component,
java.lang.String[] values) |
AllenIntervalNetworkSolver |
getAllenIntervalNetworkSolver()
Get the AllenIntervalNetworkSolver.
|
long |
getHorizon() |
long |
getOrigin() |
double |
getRigidityNumber()
Get the rigidity number of the underlying
APSPSolver's ConstraintNetwork. |
int |
numBookmarks() |
boolean |
propagate()
Propagate the constraint network.
|
void |
removeBookmarks(int i) |
void |
revert(int i) |
addConstraintsSub, createVariablesSub, createVariablesSub, createVariablesSub, drawConstraintNetworkHierarchy, drawConstraintSolverHierarchy, failurePruning, getConstraintNetworkHierarchy, getConstraintNetworksFromSolverHierarchy, getConstraintSolver, getConstraintSolverHierarchy, getConstraintSolvers, getConstraintSolversFromConstraintSolverHierarchy, getDescription, getOption, registerValueChoiceFunctions, removeConstraintsSub, removeVariablesSub, setConstraintSolver, setIngredients, setOptionsaddConstraint, addConstraintNoPropagation, addConstraints, addConstraintsDebug, addConstraintsNoPropagation, containsVariable, createVariable, createVariable, createVariables, createVariables, deplenish, getComponent, getComponents, getConstraintNetwork, getConstraints, getConstraints, getID, getOption, getVariable, getVariables, getVariables, getVariables, isCompatible, maskConstraints, removeConstraint, removeConstraints, removeVariable, removeVariables, setComponent, setComponents, setConstraintNetwork, setName, setOptions, toString, unmaskConstraintsprotected int IDs
protected long origin
protected long horizon
protected static int MAX_ACTIVITIES
protected ActivityNetworkSolver(java.lang.Class<?>[] constraintTypes,
java.lang.Class<?> variableType,
ConstraintSolver[] internalSolvers,
int[] ingredients,
long origin,
long horizon)
public ActivityNetworkSolver(long origin,
long horizon)
public ActivityNetworkSolver(long origin,
long horizon,
int numActivities)
public ActivityNetworkSolver(long origin,
long horizon,
java.lang.String[] symbols)
public ActivityNetworkSolver(long origin,
long horizon,
int numActivities,
java.lang.String[] symbols)
public long getOrigin()
public long getHorizon()
protected static ConstraintSolver[] createConstraintSolvers(long origin, long horizon, int numActivities)
protected static ConstraintSolver[] createConstraintSolvers(long origin, long horizon, int numActivities, java.lang.String[] symbols)
public double getRigidityNumber()
APSPSolver's ConstraintNetwork.public AllenIntervalNetworkSolver getAllenIntervalNetworkSolver()
public void drawAsGantt()
public void drawAsGantt(java.util.Vector<java.lang.String> selectedVariableNames)
selectedVariableNames - Only variable/components in this Vector will be plottedpublic void drawAsGantt(java.lang.String varsMatchingThis)
String on Gantt chartvarsMatchingThis - String that must be contained in a variable to be plottedpublic boolean propagate()
ConstraintSolverpropagate in class MultiConstraintSolverpublic int bookmark()
public void removeBookmarks(int i)
public void revert(int i)
public int numBookmarks()
public SymbolicVariableActivity[] getActivitiesWithSymbols(java.lang.String component, java.lang.String[] values)
public SymbolicVariableActivity[] getActivitiesWithSymbols(java.lang.String[] values)