polyfemos.back.station.Stations

class polyfemos.back.station.Stations[source]

Bases: object

Class for containing and handling multiple Station instances

Public Methods

__init__()[source]
add_parameter(parameter)[source]

Adds parameter to the last station with id self.__last_id

Parameters

parameter (Parameter) –

add_station(station)[source]

Adds station to self.__stations. If successsfully added, the id of the station is saved as self.__last_id. self.__last_id will always contain the is of the last successfully added station.

Parameters

station (Station) –

Return type

bool

Returns

True if station was successfully added to the self.__stations

get_station(network_code, station_code, t0)[source]
Parameters
Return type

Station

Returns

returns station instances matching the given network_code and station_code, and including t0 within it’s time interval