Information Technology Reference
In-Depth Information
de.rsiegfried.grams.model.constraints
«interface»
Constraints
+evaluate(Model model, Action action) : Evaluation
«interface»
Constraint
+evaluate(Model model, Action action) : Evaluation
1
0..*
Evaluation
{abstract}
+isConstraintViolated() : boolean
+getFailedAction() : FailedAction
Evaluation
{abstract}
+isConstraintViolated() : boolean
+getFailedAction() : FailedAction
«enumeration»
FailedAction
DISCARD_ACTION,
SCHEDULE_EVENT,
ABORT_SIMULATION
«enumeration»
FailedAction
DISCARD_ACTION,
SCHEDULE_EVENT,
ABORT_SIMULATION
SuccessfulEvaluation
SuccessfulEvaluation
FailedEvaluationDiscardAction
FailedEvaluationDiscardAction
FailedEvaluationScheduleEvent
FailedEvaluationScheduleEvent
FailedEvaluationAbortSimulation
FailedEvaluationAbortSimulation
Figure 9.6: Class diagram of package constraints .
SuccessfulEvaluation
Indicates that the constraint(s) were evaluated successfully.
FailedEvaluationScheduleEvent
Indicates that at least one constraint is violated, i.e., the evaluation
failed. As response to this constraint violation, an event shall be
scheduled.
Example: A constraint could be that no more than one agent is at
the same position. If two agents try to move to the same location
at the same time, a collision-event is scheduled.
FailedEvaluationDiscardAction
Indicates that at least one constraint is violated, i.e., the evaluation
failed. As response to this constraint violation, the action shall be
discarded. In this case, the simulation engine cancels the execution
of the specified action immediately.
Search WWH ::




Custom Search