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.Model
Represents the requested action to visit a specific position, having some time restrictions and costs.
-
distance_to
(other)[source]¶ Computes the distance from
self
toother
.- Parameters
other (
jinete.models.services.Service
) – Service to compute the distance fromself
.- Return type
- Returns
distance between
self
andother
.
-
duration
¶ The duration to perform the service. Commonly known as the
load_time
in 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
self
toother
.- Parameters
other (
jinete.models.services.Service
) – Service to compute the time fromself
.- Return type
- Returns
time between
self
andother
.
-