Class RoutedServiceImpl

    • Constructor Detail

      • RoutedServiceImpl

        public RoutedServiceImpl​(IdGroupingToken tokenId)
        Constructor
        Parameters:
        tokenId - to use for id generation
      • RoutedServiceImpl

        public RoutedServiceImpl​(RoutedServiceImpl routedServiceImpl)
        Copy constructor
        Parameters:
        routedServiceImpl - to copy
    • Method Detail

      • generateId

        protected static long generateId​(IdGroupingToken tokenId)
        Generate id for instances of this class based on the token and class identifier
        Parameters:
        tokenId - to use
        Returns:
        generated id
      • recreateManagedIds

        public long recreateManagedIds​(IdGroupingToken tokenId)
        recreate the internal id(s) and set them including the Idable id
        Specified by:
        recreateManagedIds in interface ManagedId
        Parameters:
        tokenId - to use
        Returns:
        the updated internal id
      • getName

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

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

        public 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"
        Specified by:
        getNameDescription in interface RoutedService
        Returns:
        nameDescription
      • setNameDescription

        public 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"
        Specified by:
        setNameDescription in interface RoutedService
        Parameters:
        nameDescription - to use
      • getServiceDescription

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

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

        public void resetChildManagedIdEntities()
        Each class that has a managed id, should be able to reset any children that themselves are managedIdEntity containers. This ensures that when resetting such a container any child containers are also reset
        Specified by:
        resetChildManagedIdEntities in interface ManagedId