45 #ifndef __SIM_SYSTEM_H__
46 #define __SIM_SYSTEM_H__
58 class SimulatorInterface;
134 SimSystem(
bool visualize,
float duration );
157 virtual bool updateScene(
float time );
165 bool isFinished()
const;
230 virtual void updateAgentPosition(
int agtCount );
244 size_t getAgentCount()
const;
292 #endif // __VIS_RVO_SIM_H__
The mechanism for evolving a scene w.r.t. time.
An animation system. Responsible for updating the scene based based on increasing time values...
Definition: System.h:83
Templated class for performing simulation.
Definition: SimSystem.h:115
BFSM::FSM * _fsm
The behavior finite state machine for the simulator.
Definition: SimSystem.h:268
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
float _maxDuration
Maximum length of simulation time to compute (in simulation time).
Definition: SimSystem.h:289
SimSystemFatalException(const std::string &s)
Constructor with message.
Definition: SimSystem.h:104
Generic exception for the SimSystem.
Definition: SimSystem.h:74
float _lastUpdate
The global time of last system update.
Definition: SimSystem.h:279
bool _forVis
Determines if the system is actually for driving a visual scene.
Definition: SimSystem.h:252
The fatal SimSystem exception.
Definition: SimSystem.h:92
The base definition for exceptions in Menge.
VisAgent ** _visAgents
The visualization agents the system is responsible for updating.
Definition: SimSystem.h:263
SimSystemFatalException()
Default constructor.
Definition: SimSystem.h:97
The basic simulator interface required by the fsm.
Definition: SimulatorInterface.h:66
VisAgent ** getVisAgents()
Returns a pointer to the visualization agents.
Definition: SimSystem.h:237
SimSystemException()
Default constructor.
Definition: SimSystem.h:79
The SceneGraph (SceneGraph) name space, containing all elements to use in a SceneGraph.
Agents::SCBWriter * _scbWriter
The optional scb writer (if an output file has been successfully specified.
Definition: SimSystem.h:274
SimSystemException(const std::string &s)
Constructor with message.
Definition: SimSystem.h:86
Base exception class for menge operations.
Definition: MengeException.h:58
Agents::SimulatorInterface * _sim
Simulator to run and (possibly) visualize.
Definition: SimSystem.h:257
Templated class for the behavior finite state machine.
Definition: FSM.h:126
bool _isRunning
Indicates if the simulation is running.
Definition: SimSystem.h:284
The class which contains the entire drawable scene.
Definition: GLScene.h:72
Base class for fatal exceptions.
Definition: MengeException.h:99
Class responsible for writing the agent state of the simulator and fsm into a file.
Definition: SCBWriter.h:145
The basic agent visualization class: a selectable cylinder.
Definition: VisAgent.h:66
The namespace contains the Behavior Finite State Machine (BFSM) definition.
The namespace that contains the basic simulation mechanisms.
void setMaxDuration(float duration)
Sets the maximum length allowed for the simulation to run.
Definition: SimSystem.h:148