Class PredefinedModeImpl

    • Constructor Detail

      • PredefinedModeImpl

        protected PredefinedModeImpl​(IdGroupingToken groupId,
                                     PredefinedModeType modeType,
                                     double maxSpeed,
                                     double pcu,
                                     PhysicalModeFeatures physicalFeatures,
                                     UsabilityModeFeatures usabilityFeatures)
        A predefined mode
        Parameters:
        groupId - groupId for id generation
        modeType - predefined mode type used
        maxSpeed - the maximum speed for this predefined mode type
        pcu - pcu value for this predefined mode
        physicalFeatures - physical features of the mode
        usabilityFeatures - usabilitu features of the mode
      • PredefinedModeImpl

        protected PredefinedModeImpl​(PredefinedModeImpl other,
                                     boolean deepCopy)
        Copy constructor
        Parameters:
        other - to copy
        deepCopy - when true, create a deep copy, shallow copy otherwise
    • Method Detail

      • deepClone

        public PredefinedModeImpl deepClone()
        An id entity should always support a deep copy, i.e., all "owned" members will be deep copied when a clone of this instance is created via this call. To be used with caution if not called by managed id container related code
        Specified by:
        deepClone in interface IdAble
        Overrides:
        deepClone in class ModeImpl
        Returns:
        deep copy of entity