ix.examples
Class SimResource.CM
java.lang.Object
ix.examples.PicoIX.ConstraintManager
ix.examples.SimResource.CM
- Enclosing class:
- SimResource
static class SimResource.CM
- extends PicoIX.ConstraintManager
A constraint manager for simple "produce" or "consume"
resource constraints.
Field Summary |
(package private) java.util.Hashtable |
resourceTable
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resourceTable
java.util.Hashtable resourceTable
SimResource.CM
SimResource.CM()
addConstraint
java.lang.Object addConstraint(PicoIX.Constraint c)
- Specified by:
addConstraint
in class PicoIX.ConstraintManager
tryConstraint
java.lang.Object tryConstraint(PicoIX.Constraint c)
- Specified by:
tryConstraint
in class PicoIX.ConstraintManager
getAmount
long getAmount(java.lang.Object pattern)
setAmount
void setAmount(java.lang.Object pattern,
long amount)
noteSuccess
void noteSuccess(SimResource.Constraint rc)
noteFailure
void noteFailure(SimResource.Constraint rc)
printStatusReport
void printStatusReport()