<reponame>ChristophBleyer/Technician-Vehicle-Routing-Optimization
from .Node import Node
import numpy as np

class ServiceStop(Node):
    def __init__(self, index, lat, lng, serviceDuration, schedule, serviceTime, requirements, profitForcast):
        super().__init__(index, lat ,lng, serviceDuration, schedule, serviceTime)
        self._requirements = requirements
        self._profitForcast = profitForcast
        
    @property
    def requirements(self):
       return self._requirements
    
    @property
    def profitForcast(self):
       return self._profitForcast
    
    def getServiceTimeStartDistance(self, stop):
        return np.abs(self.serviceTime.earliest - stop.serviceTime.earliest)
 
from .Node import Node
import numpy as np

class ServiceStop(Node):
    def __init__(self, index, lat, lng, serviceDuration, schedule, serviceTime, requirements, profitForcast):
        super().__init__(index, lat ,lng, serviceDuration, schedule, serviceTime)
        self._requirements = requirements
        self._profitForcast = profitForcast
        
    @property
    def requirements(self):
       return self._requirements
    
    @property
    def profitForcast(self):
       return self._profitForcast
    
    def getServiceTimeStartDistance(self, stop):
        return np.abs(self.serviceTime.earliest - stop.serviceTime.earliest)