Package org.planit.project
Class PlanItProjectInput.ProjectDemands
- java.lang.Object
-
- org.planit.project.PlanItProjectInput.ProjectDemands
-
- Enclosing class:
- PlanItProjectInput
public class PlanItProjectInput.ProjectDemands extends Object
Internal class for registered demands
-
-
Constructor Summary
Constructors Constructor Description ProjectDemands()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Demands
getDemands(long id)
Get demands by idDemands
getFirstDemands()
Collect the first demands that are registered (if any).int
getNumberOfDemands()
Get the number of demandsboolean
hasRegisteredDemands()
Check if demands have already been registeredList<Demands>
toList()
Returns a List of demands
-
-
-
Method Detail
-
getDemands
public Demands getDemands(long id)
Get demands by id- Parameters:
id
- the id of the demands- Returns:
- the retrieved demands
-
getNumberOfDemands
public int getNumberOfDemands()
Get the number of demands- Returns:
- the number of demands in the project
-
hasRegisteredDemands
public boolean hasRegisteredDemands()
Check if demands have already been registered- Returns:
- true if registered demands exist, false otherwise
-
getFirstDemands
public Demands getFirstDemands()
Collect the first demands that are registered (if any). Otherwise return null- Returns:
- first demands that are registered if none return null
-
-