public abstract class Schedulable extends MetaConstraint
| Modifier and Type | Class and Description |
|---|---|
static class |
Schedulable.PEAKCOLLECTION |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Vector<Activity> |
activities |
protected long |
beforeParameter |
protected Schedulable.PEAKCOLLECTION |
peakCollectionStrategy |
independentMC, metaCS, valOH, varOHannotation, autoRemovable, color, id, logger, masked, numIDs, scope| Constructor and Description |
|---|
Schedulable(VariableOrderingH varOH,
ValueOrderingH valOH) |
| Modifier and Type | Method and Description |
|---|---|
protected ConstraintNetwork[] |
binaryPeakCollection() |
protected ConstraintNetwork[] |
completePeakCollection() |
java.util.Vector<Activity> |
getActivityOnUse() |
long |
getBeforeParameter() |
ConstraintNetwork[] |
getMetaValues(MetaVariable metaVariable)
Get all meta values for a given
MetaVariable. |
ConstraintNetwork[] |
getMetaVariables()
Get all
MetaVariables according to this MetaConstraint. |
MCSData[] |
getOrderedMCSs(ConstraintNetwork peak)
Get a list of
MCSData objects, ordered according to decreasing k, where k is a heuristic estimator
of the amount of flexibility which is maintained when imposing a temporal constraint that resolves an MCS -
see [P. |
Schedulable.PEAKCOLLECTION |
getPeakCollectionStrategy() |
abstract boolean |
isConflicting(Activity[] peak) |
void |
markResolvedSub(MetaVariable con,
ConstraintNetwork metaValue)
Method to mark a
MetaVariable as solved. |
void |
removeUsage(Activity... acts) |
protected ConstraintNetwork[] |
samplingPeakCollection() |
void |
setBeforeParameter(long beforeParameter) |
void |
setPeakCollectionStrategy(Schedulable.PEAKCOLLECTION peakCollectionStrategy) |
void |
setUsage(Activity... acts) |
protected boolean |
temporalOverlap(Activity a1,
Activity a2) |
draw, getDescription, getGroundSolver, getMetaValue, getMetaVariable, getValOH, getVarOH, setMetaSolver, setValOH, setVarOHclone, getAnnotation, getColor, getEdgeLabel, getID, getScope, isAutoRemovable, isEquivalent, isMasked, isSkippableSolver, isUnary, mask, setAnnotation, setAutoRemovable, setColor, setScope, skipSolver, toString, unmaskprotected long beforeParameter
protected java.util.Vector<Activity> activities
protected Schedulable.PEAKCOLLECTION peakCollectionStrategy
public Schedulable(VariableOrderingH varOH, ValueOrderingH valOH)
public long getBeforeParameter()
public void setBeforeParameter(long beforeParameter)
public Schedulable.PEAKCOLLECTION getPeakCollectionStrategy()
public void setPeakCollectionStrategy(Schedulable.PEAKCOLLECTION peakCollectionStrategy)
protected ConstraintNetwork[] samplingPeakCollection()
protected ConstraintNetwork[] completePeakCollection()
protected ConstraintNetwork[] binaryPeakCollection()
public ConstraintNetwork[] getMetaVariables()
MetaConstraintMetaVariables according to this MetaConstraint. This method must be implemented by the
designer of the implementing MetaConstraint class.getMetaVariables in class MetaConstraintMetaVariables according to this MetaConstraint.public ConstraintNetwork[] getMetaValues(MetaVariable metaVariable)
MetaConstraintMetaVariable. This method must be
implemented in the specific MetaConstraint.getMetaValues in class MetaConstraintmetaVariable - The MetaVariable for which we seek meta values.MetaVariable.public MCSData[] getOrderedMCSs(ConstraintNetwork peak)
MCSData objects, ordered according to decreasing k, where k is a heuristic estimator
of the amount of flexibility which is maintained when imposing a temporal constraint that resolves an MCS -
see [P. Laborie, M. Ghallab, "Planning with Sharable Resource Constraints", IJCAI 1995].peak - The peaks from which to sample MCSs and compute the k-based ordering.MCSData objects.public void markResolvedSub(MetaVariable con, ConstraintNetwork metaValue)
MetaConstraintMetaVariable as solved. This method is called by the
MetaConstraintSolver and must be implemented by the developer of the
MetaConstraint.markResolvedSub in class MetaConstraintcon - The MetaVariable that is to be considered solved by
the given meta value.metaValue - The solving meta value.public abstract boolean isConflicting(Activity[] peak)
public void setUsage(Activity... acts)
public void removeUsage(Activity... acts)
public java.util.Vector<Activity> getActivityOnUse()