public class ReusableResource extends Schedulable
Schedulable.PEAKCOLLECTION| Modifier and Type | Field and Description |
|---|---|
protected int |
capacity |
activities, beforeParameter, peakCollectionStrategyindependentMC, metaCS, valOH, varOHannotation, autoRemovable, color, id, logger, masked, numIDs, scope| Constructor and Description |
|---|
ReusableResource(VariableOrderingH varOH,
ValueOrderingH valOH,
int capacity) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
void |
draw(ConstraintNetwork network)
Method to draw the metaCSP's constraint network according to the rationale of
this
MetaConstraint (e.g., for a resource, this could be the resource usage profile
as it is determined by the given constraint network). |
java.lang.String |
getEdgeLabel()
Every
Constraint should implement this method - its value is
what is drawn by the ConstraintNetwork rendering methods. |
ConstraintSolver |
getGroundSolver()
Provides the definition of how to get the/a groundSolver for this
MetaConstraint. |
boolean |
isConflicting(Activity[] peak) |
boolean |
isEquivalent(Constraint c)
Method for assessing the "equivalence" between two constraints.
|
java.lang.String |
toString()
Every
Constraint should implement a toString method (used by the
ConstraintNetwork rendering methods). |
binaryPeakCollection, completePeakCollection, getActivityOnUse, getBeforeParameter, getMetaValues, getMetaVariables, getOrderedMCSs, getPeakCollectionStrategy, markResolvedSub, removeUsage, samplingPeakCollection, setBeforeParameter, setPeakCollectionStrategy, setUsage, temporalOverlapgetDescription, getMetaValue, getMetaVariable, getValOH, getVarOH, setMetaSolver, setValOH, setVarOHgetAnnotation, getColor, getID, getScope, isAutoRemovable, isMasked, isSkippableSolver, isUnary, mask, setAnnotation, setAutoRemovable, setColor, setScope, skipSolver, unmaskpublic ReusableResource(VariableOrderingH varOH, ValueOrderingH valOH, int capacity)
public boolean isConflicting(Activity[] peak)
isConflicting in class Schedulablepublic void draw(ConstraintNetwork network)
MetaConstraintMetaConstraint (e.g., for a resource, this could be the resource usage profile
as it is determined by the given constraint network). This method must be implemented by the
developer of the MetaConstraint.draw in class MetaConstraintnetwork - The constraint network to draw.public java.lang.String toString()
ConstraintConstraint should implement a toString method (used by the
ConstraintNetwork rendering methods).toString in class ConstraintString representation of this Constraint.public java.lang.String getEdgeLabel()
ConstraintConstraint should implement this method - its value is
what is drawn by the ConstraintNetwork rendering methods.getEdgeLabel in class ConstraintString representation of the constraint to be used for
ConstraintNetwork rendering.public java.lang.Object clone()
clone in class Constraintpublic boolean isEquivalent(Constraint c)
ConstraintisEquivalent in class Constraintc - The Constraint to compare against.true iff the two constraints are considered to be equivalent.public ConstraintSolver getGroundSolver()
MetaConstraintMetaConstraint.getGroundSolver in class MetaConstraintMetaConstraint.