Class PlanItProjectInput.ProjectNetworks

  • Enclosing class:
    PlanItProjectInput

    public class PlanItProjectInput.ProjectNetworks
    extends Object
    Internal class for registered physical networks
    • Constructor Detail

      • ProjectNetworks

        public ProjectNetworks()
    • Method Detail

      • toList

        public List<InfrastructureNetwork> toList()
        Returns a List of infrastructure based networks
        Returns:
        List of networks
      • getInfrastructureNetwork

        public InfrastructureNetwork getInfrastructureNetwork​(long id)
        Get infrastructure network by id
        Parameters:
        id - the id of the network
        Returns:
        the retrieved network
      • getNumberOfInfrastructureNetworks

        public int getNumberOfInfrastructureNetworks()
        Get the number of networks
        Returns:
        the number of networks in the project
      • hasRegisteredInfrastructureNetworks

        public boolean hasRegisteredInfrastructureNetworks()
        Check if infrastructure networks have already been registered
        Returns:
        true if registered networks exist, false otherwise
      • getFirstInfrastructureNetwork

        public InfrastructureNetwork getFirstInfrastructureNetwork()
        Collect the first network that is registered (if any). Otherwise return null
        Returns:
        first network that is registered if none return null