25 std::map<int, std::vector<std::vector<Core::CartesianCoordinate>>>;
41 void save(std::string filename);
46 void load(std::string filename);
48 inline std::pair<RouteMap::iterator, RouteMap::iterator>
51 return std::make_pair<RouteMap::iterator, RouteMap::iterator>(
55 inline std::pair<std::vector<Core::Agent>::iterator,
56 std::vector<Core::Agent>::iterator>
59 return std::make_pair<std::vector<Core::Agent>::iterator,
60 std::vector<Core::Agent>::iterator>(
The Scenario class represents a scenario with keyframes and routes.
void save(std::string filename)
Saves the scenario to a file with the given filename.
std::vector< Core::Agent > m_Agents
std::pair< RouteMap::iterator, RouteMap::iterator > GetRoutes()
KeyframeManagement::KeyframeManager & m_KeyframeManager
std::unique_ptr< Routemaker::Routemaker > m_Routemaker
JSONSTART JSONMEMBER(Core::GeographicalCoordinate, m_Origin)
RouteMap & Compile()
Compiles the scenario into a map of routes.
Core::GeographicalCoordinate m_Origin
void AddAgent(Core::Agent newAgent)
std::map< int, std::vector< std::vector< Core::CartesianCoordinate > > > RouteMap
void load(std::string filename)
Loads a scenario from a file with the given filename.
std::pair< std::vector< Core::Agent >::iterator, std::vector< Core::Agent >::iterator > GetAgents()
JSONSTART JSONINT(m_Size)
void SetOrigin(Core::GeographicalCoordinate GeoCoord, int size)
Sets the origin of the scenario to the given geographical coordinates and size.
This is the class that manages keyframes.
#define JSON
Macros To serialize an object you need to have the GetProperty() function in the object.
#define JSONMEMBERVECTOR(T, m)
A structure that represents a geographic coordinate.