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 PhysicalNetwork
getFirstNetwork()
Collect the first network that is registered (if any).int
getNumberOfPhysicalNetworks()
Get the number of networksPhysicalNetwork
getPhysicalNetwork(long id)
Get physical network by idboolean
hasRegisteredNetworks()
Check if networks have already been registeredList<PhysicalNetwork>
toList()
Returns a List of networks
-
-
-
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
-
-