LookingAhead
A trait that adds Lookahead capabilities to a simulation.
Works in conjunction with LookaheadScheduler.
Provides a lookahead structure that can be built up by the simulation and then sent to the scheduler for use in making schedules which look into the future to consider upcoming tasks in scheduling.
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
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 Task whose simulation has completed.
Manages a Task whose simulation has completed.
Removes the task from the lookahead structure and sends this updated structure to the
scheduler before calling the complete
method implementation of the parent class.
- Value Params
- task
The TaskInstance that completed.
- time
The timestamp of its completion.
- Definition Classes
Inherited methods
A unique name for the simulation.
A unique name for the simulation.
- Returns
The name of the SimulationRef.
- Inherited from
- SimulationRef