starling_sim.basemodel.output.feature_factory

Module Contents

Functions

create_point_feature(geojson_output, element[, ...])

create_line_string_feature(geojson_output, element[, ...])

create_multi_polygon_feature(geojson_output, element)

get_element_point(geojson_output, element)

get_element_multi_polygon(geojson_output, element)

get_element_line_string(geojson_output, element)

route_localisations(route_event, time_limit, topology)

Return the localisations and timestamps of the given event route.

add_agent_id(feature, element[, agent_id])

add_icon_type(feature, element[, icon_type])

add_agent_type(feature, element[, agent_type])

starling_sim.basemodel.output.feature_factory.create_point_feature(geojson_output, element, agent_id=None, icon_type=None, agent_type=None)
starling_sim.basemodel.output.feature_factory.create_line_string_feature(geojson_output, element, agent_id=None, icon_type=None, agent_type=None)
starling_sim.basemodel.output.feature_factory.create_multi_polygon_feature(geojson_output, element, agent_id=None, icon_type=None, agent_type=None)
starling_sim.basemodel.output.feature_factory.get_element_point(geojson_output, element)
starling_sim.basemodel.output.feature_factory.get_element_multi_polygon(geojson_output, element)
starling_sim.basemodel.output.feature_factory.get_element_line_string(geojson_output, element)
starling_sim.basemodel.output.feature_factory.route_localisations(route_event, time_limit, topology)

Return the localisations and timestamps of the given event route.

Parameters:
  • route_event – RouteEvent

  • time_limit – time limit of the simulation

  • topology – Topology object corresponding to the route used

Returns:

tuple of lists, localisations and timestamps

starling_sim.basemodel.output.feature_factory.add_agent_id(feature, element, agent_id=None)
starling_sim.basemodel.output.feature_factory.add_icon_type(feature, element, icon_type=None)
starling_sim.basemodel.output.feature_factory.add_agent_type(feature, element, agent_type=None)