public class Resource extends Resource
costPerHour, id, name, timetableId, totalAmount| Constructor and Description |
|---|
Resource(Resource sourceResource) |
Resource(String id,
String name)
Default constructor with id and name
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getIndex()
Returns uniquely assigned index
|
TimeTable |
getTimeTable()
Returns Work schedule (time table) for the resource
|
boolean |
isAmountUnlimited()
Whether the number of resources is unlimited.
|
void |
setIndex(Integer index)
Defines index for a resource
|
void |
setTimeTable(TimeTable timeTable)
Sets the works schedule for the resource
|
String |
toString() |
getCostPerHour, getId, getName, getTimetableId, getTotalAmount, setCostPerHour, setId, setName, setTimetableId, setTotalAmountpublic Resource(String id, String name)
id - resource idname - resource namepublic Resource(Resource sourceResource)
public void setIndex(Integer index)
index - unique indexpublic Integer getIndex()
public TimeTable getTimeTable()
public void setTimeTable(TimeTable timeTable)
timeTable - time table with rulespublic boolean isAmountUnlimited()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.