| org.cougaar.core.adaptivity.Condition
All known Subclasses: org.cougaar.core.adaptivity.OperatingModeCondition, org.cougaar.core.adaptivity.InterAgentCondition, org.cougaar.core.adaptivity.MetricsCondition, org.cougaar.core.adaptivity.SensorCondition,
Condition | public interface Condition extends java.io.Serializable(Code) | | A Condition holds a value that the
AdaptivityEngine or
PolicyManager PolicyManager uses for selecting
Play Play s or
OperatingModePolicy OperatingModePolicy s.
Conditions include the measurements made by sensors, external
conditions distributed throughout portions of the society and
inputs from higher level adaptivity engines. This interface does
not define a setValue method because establishing the current value
is the responsibility of the owner of the Condition.
|
getAllowedValues | OMCRangeList getAllowedValues()(Code) | | Get the list of allowed value ranges for this OperatingMode.
Attempts to set the value outside these ranges will fail.
a list of allowed value ranges |
getName | String getName()(Code) | | Gets the (distinct) name of this Condition. The names of all
the Condition on a particular blackboard must be distinct. This
can be achieved by establishing naming conventions such has
including the class name of the plugin or other component that
created the Condition in the name. Where the same component
class may be instantiated multiple times, the multiple
instances may already have some sor of name that can be used in
addition to the class name. It is the responsibility of the
component designer to insure that Condition names are not
ambiguous.
the name of this Condition |
getValue | Comparable getValue()(Code) | | Get the current value of this OperatingMode. This value must
never be outside the allowed value ranges.
the current value of this OperatingMode |
|
|