services module¶
Contains entities to represent services in the data model.
-
class
jinete.models.services.Service(position, earliest=0.0, latest=inf, duration=0.0)[source]¶ Bases:
jinete.models.abc.ModelRepresents the requested action to visit a specific position, having some time restrictions and costs.
-
distance_to(other)[source]¶ Computes the distance from
selftoother.- Parameters
other (
jinete.models.services.Service) – Service to compute the distance fromself.- Return type
- Returns
distance between
selfandother.
-
duration¶ The duration to perform the service. Commonly known as the
load_timein another contexts.
-
earliest¶ The earliest time to start the service.
-
latest¶ The latest time to start the service.
-
position¶ The position of the service.
-
time_to(other, *args, **kwargs)[source]¶ Computes the time from
selftoother.- Parameters
other (
jinete.models.services.Service) – Service to compute the time fromself.- Return type
- Returns
time between
selfandother.
-