public interface

Scenario

uk.ac.imperial.presage2.core.simulator.Scenario

Class Overview

The scenario defines the entities to be run by the scheduler.

Summary

Public Methods
abstract void addAgent(Object o)
Add an agent to the scenario
abstract void addClass(Class<?> c)
Add classes to be inject to the scenario.
abstract void addEnvironment(TimeDriven object)
This method is deprecated. No replacement.
abstract void addObject(Object o)
Add an object to the scenario
abstract void addParticipant(Participant agent)
This method is deprecated. Use instead addAgent(Object) with Step annotations
abstract void addTimeDriven(TimeDriven object)
This method is deprecated. Use instead addObject(Object) with Step annotations.

Public Methods

public abstract void addAgent (Object o)

Add an agent to the scenario

public abstract void addClass (Class<?> c)

Add classes to be inject to the scenario.

public abstract void addEnvironment (TimeDriven object)

This method is deprecated.
No replacement.

No-op as state engine is now handled directly by the simulator.

public abstract void addObject (Object o)

Add an object to the scenario

public abstract void addParticipant (Participant agent)

This method is deprecated.
Use instead addAgent(Object) with Step annotations

Backwards compatibility for Participant entities.

public abstract void addTimeDriven (TimeDriven object)

This method is deprecated.
Use instead addObject(Object) with Step annotations.

Backwards compatibility for TimeDriven entities.