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<PhysicalNetwork> toList()
        Returns a List of networks
        Returns:
        List of networks
      • getPhysicalNetwork

        public PhysicalNetwork getPhysicalNetwork​(long id)
        Get physical network by id
        Parameters:
        id - the id of the network
        Returns:
        the retrieved network
      • getNumberOfPhysicalNetworks

        public int getNumberOfPhysicalNetworks()
        Get the number of networks
        Returns:
        the number of networks in the project
      • hasRegisteredNetworks

        public boolean hasRegisteredNetworks()
        Check if networks have already been registered
        Returns:
        true if registered networks exist, false otherwise
      • getFirstNetwork

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