Class Network

    • Field Detail

      • networkIdGroupingToken

        protected IdGroupingToken networkIdGroupingToken
        a token for this network in particular to ensure unique ids across all entities of the same class instance within this network
      • MACROSCOPIC_NETWORK

        public static final String MACROSCOPIC_NETWORK
        shorthand for creating a macroscopic infrastructure network
    • Constructor Detail

      • Network

        public Network​(IdGroupingToken tokenId)
        Constructor
        Parameters:
        tokenId - contiguous id generation within this group for instances of this class
      • Network

        public Network​(Network network,
                       boolean deepCopy)
        Copy constructor
        Parameters:
        network - to clone
        deepCopy - when true, create a deep copy, shallow copy otherwise
    • Method Detail

      • getNetworkGroupingTokenId

        public IdGroupingToken getNetworkGroupingTokenId()
        collect the grouping token for this network instance
        Returns:
        id grouping token
      • deepClone

        public abstract Network deepClone()
        deep clone on planit component should attempt to also update internal dependencies between deep cloned containers where possible
        Specified by:
        deepClone in interface IdAble
        Specified by:
        deepClone in class PlanitComponent<Network>
        Returns:
        deep copy of entity
      • reset

        public void reset()
        All components should be able to reset going back to some representative initial state
        Specified by:
        reset in class PlanitComponent<Network>
      • collectSettingsAsKeyValueMap

        public Map<String,​String> collectSettingsAsKeyValueMap()
        Provide all the settings of this particular component by name and value, where each value is a string representation of the underlying entity
        Specified by:
        collectSettingsAsKeyValueMap in class PlanitComponent<Network>
        Returns:
        name-value map of all (user configurable) settings
      • logInfo

        public abstract void logInfo​(String prefix)
        Log general information on this network to the user
        Parameters:
        prefix - to use
      • isEmpty

        public abstract boolean isEmpty()
        Verify if entire network is empty
        Returns:
        true if network is empty, false otherwise