Interface RoutedService

    • Field Detail

      • ROUTED_SERVICE_ID_CLASS

        static final Class<RoutedService> ROUTED_SERVICE_ID_CLASS
        id class for generating ids
    • Method Detail

      • getIdClass

        default Class<RoutedService> getIdClass()
        Each managed id class is expected to generate its ids based on its class signature. To be able to generate the correct id the class used for id generation is to be provided via this method call.
        Specified by:
        getIdClass in interface ManagedId
        Returns:
        idClass to use for generating ids for instances of this idable derived class
      • clone

        RoutedService clone()
        Create a shallow copy of this entity
        Specified by:
        clone in interface IdAble
        Returns:
        shallow copy of entity
      • getName

        String getName()
        Name of the service, can be a number. Shortest visual (user) identifier for the service
        Returns:
        name
      • setName

        void setName​(String name)
        Name of the service, can be a number. Shortest visual (user) identifier for the service
        Parameters:
        name - to use
      • getNameDescription

        String getNameDescription()
        Description of the name of the service, usually a short elaboration in addition to the name (number), for example for a bus the name could be 370 and the nameDescription "Balmain to Coogee"
        Returns:
        nameDescription
      • setNameDescription

        void setNameDescription​(String nameDescription)
        Description of the name of the service, usually a short elaboration in addition to the name (number), for example for a bus the name could be 370 and the nameDescription "Balmain to Coogee"
        Parameters:
        nameDescription - to use
      • getServiceDescription

        String getServiceDescription()
        Description of the service, longer (if at all) and contextual not meant for end user in reality
        Returns:
        serviceDescription
      • setServiceDescription

        void setServiceDescription​(String serviceDescription)
        Description of the service, longer (if at all) and contextual not meant for end user in reality
        Parameters:
        serviceDescription - to use
      • getTripInfo

        RoutedServiceTripInfo getTripInfo()
        Access to the trips available for this service
        Returns:
        known routed service trips