|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstella.AbstractTarget.ConstraintAdapter
public abstract static class AbstractTarget.ConstraintAdapter
An adapter class for Appointable.Constraints.
| Constructor Summary | |
|---|---|
AbstractTarget.ConstraintAdapter()
|
|
| Method Summary | |
|---|---|
Comparable |
getAbove()
Returns the upper bound of the forbiddn parameter space. |
Comparable |
getBelow()
Returns the lower bound of the forbiddn parameter space. |
Comparable |
getFrom()
Returns the lower bound of the allowed parameter space. |
Comparable |
getMax()
Returns the maximum of the allowed parameter space. |
Comparable<?> |
getMin()
Returns the minimum of the allowed parameter space. |
long |
getTimeForConstraint(ParameterClustering set,
TargetDefinition target)
Returns the time remaining for this constraint. |
Comparable |
getTo()
Returns the upper bound of the allowed parameter space. |
boolean |
isSatisfied(ParameterClustering set,
TargetDefinition target)
Implements the stella.Scheduling.Constraint method and
diverts
it to calculating the remaining time. |
String |
toString()
Returns the name of the variable plus the apllied constraint. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface stella.Appointable.Constraint |
|---|
getValueName |
| Constructor Detail |
|---|
public AbstractTarget.ConstraintAdapter()
| Method Detail |
|---|
public Comparable<?> getMin()
getMin in interface Appointable.Constraintpublic Comparable getMax()
getMax in interface Appointable.Constraintpublic Comparable getFrom()
getFrom in interface Appointable.Constraintpublic Comparable getTo()
getTo in interface Appointable.Constraintpublic Comparable getBelow()
getBelow in interface Appointable.Constraintpublic Comparable getAbove()
getAbove in interface Appointable.Constraint
public boolean isSatisfied(ParameterClustering set,
TargetDefinition target)
stella.Scheduling.Constraint method and
diverts
it to calculating the remaining time. If no time is remaining,
false is returned.
isSatisfied in interface Appointable.Constraint
public long getTimeForConstraint(ParameterClustering set,
TargetDefinition target)
#valuename. Then, the type of constraint is checked and the
current value of the parameter is checked against the constraints.
If the parameter is out of bounds, zero is returned. Otherwise,
the parameter is checked for being Increasing or
Decreasing. Depending on the constraint type, this property
of the parameter is used to fetch a remaining time. If the parameter
does not supply a Increasing or Decreasing
information, the maximum time is returned.
getTimeForConstraint in interface Appointable.Constraintpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||