Interface ModeFactory

    • Method Detail

      • registerNewCustomMode

        Mode registerNewCustomMode​(String name,
                                   double maxSpeed,
                                   double pcu,
                                   PhysicalModeFeatures physicalFeatures,
                                   UsabilityModeFeatures usabilityFeatures)
        Create and register new mode
        Parameters:
        name - of the mode
        maxSpeed - maximum speed of the mode
        pcu - value for the mode
        physicalFeatures - the physical features of this custom mode
        usabilityFeatures - the usability features of this custom mode
        Returns:
        new mode created
      • registerNew

        PredefinedMode registerNew​(PredefinedModeType modeType)
        Create and register a new predefined mode. When it already exists, the existing entry is returned
        Parameters:
        modeType - the predefined mode type
        Returns:
        new mode created, or existing mode when already present
      • createPredefinedMode

        PredefinedMode createPredefinedMode​(IdGroupingToken groupId,
                                            PredefinedModeType modeType)
                                     throws PlanItException
        create a predefined mode instance without registering it on the container. Use with caution as it can mess up the internal id structure if not registered subsequently
        Parameters:
        groupId - the is generation token
        modeType - predefined mode type to create
        Returns:
        predefined mode instance
        Throws:
        PlanItException - thrown if error