Package org.planit.project
Class PlanItProjectInput.ProjectNetworks
- java.lang.Object
-
- org.planit.project.PlanItProjectInput.ProjectNetworks
-
- Enclosing class:
- PlanItProjectInput
public class PlanItProjectInput.ProjectNetworks extends Object
Internal class for registered physical networks
-
-
Constructor Summary
Constructors Constructor Description ProjectNetworks()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InfrastructureNetworkgetFirstInfrastructureNetwork()Collect the first network that is registered (if any).InfrastructureNetworkgetInfrastructureNetwork(long id)Get infrastructure network by idintgetNumberOfInfrastructureNetworks()Get the number of networksbooleanhasRegisteredInfrastructureNetworks()Check if infrastructure networks have already been registeredList<InfrastructureNetwork>toList()Returns a List of infrastructure based networks
-
-
-
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
-
-