SingleTaskSimulation
A Simulation that simulates a single Task.
- Value Params
- cost
A Distribution for the cost of the Task.
- duration
A Distribution for the duration of the Task.
- interrupt
The Task.interrupt parameter.
- manager
The Manager of the simulation.
- name
The simulation name.
- priority
The explicit priority of the Task.
- resources
The names of the TaskResources the Task will require.
Document{}
Declare IDs of TaskInstances that need to be aborted.
Declare IDs of TaskInstances that need to be aborted.
- Value Params
- ids
The
UUID
s of the TaskInstances.
- Inherited from
- Simulation
Declares that the simulation has finished processing one or more completed TaskInstances.
Declares that the simulation has finished processing one or more completed TaskInstances.
Identifies the tasks via their UUID.
- Inherited from
- Simulation
Declares that the simulation completed.
Declares that the simulation completed.
- Value Params
- result
The result of the simulation.
- Inherited from
- Simulation
Declares that the simulation has failed or has been aborted.
Declares that the simulation has failed or has been aborted.
- Value Params
- exception
The
Throwable
that caused the failure.
- Inherited from
- Simulation
Calculates an optional Lookahead structure for tasks that are expected in the future.
Calculates an optional Lookahead structure for tasks that are expected in the future.
This is called via ready.
- Returns
The current Lookahead structure.
- Inherited from
- Simulation
Declares that the simulation has finished calculating and is ready for virtual time to proceed.
Declares that the simulation has finished calculating and is ready for virtual time to proceed.
- Inherited from
- Simulation
Requests that the Manager waits for this simulation before it continues.
Requests that the Manager waits for this simulation before it continues.
The simulation needs to either register more tasks and become ready
or finish.
- Note
- Inherited from
- Simulation
Declares that the simulation completed successfully.
Declares that the simulation completed successfully.
- Value Params
- result
The successful result of the simulation.
- Inherited from
- Simulation
Value members
Concrete methods
Manages a completed TaskInstance.
Manages a completed TaskInstance.
The simulation logic must react to this by either registering more tasks or finishing.
If new tasks are produced, the completed TaskInstance must be acknowledged
via
ack. Alternatively, if we do not want to ack
all completed tasks, we can just call
ready. Finally, if the simulation completes, we can use done, succeed or fail
accordingly.
Completes immediately with succeed.
- Definition Classes