Revision 1207,
803 bytes
checked in by wojtekp, 11 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package schedframe.scheduling; |
---|
2 | |
---|
3 | import java.util.Map; |
---|
4 | |
---|
5 | import org.joda.time.DateTime; |
---|
6 | |
---|
7 | import schedframe.resources.units.ResourceUnit; |
---|
8 | import schedframe.resources.units.ResourceUnitName; |
---|
9 | |
---|
10 | //TODO - change name |
---|
11 | public class ResourceHistoryItem { |
---|
12 | |
---|
13 | protected Map<ResourceUnitName, ResourceUnit> usedResources; |
---|
14 | protected DateTime timeStamp; |
---|
15 | |
---|
16 | /** |
---|
17 | * |
---|
18 | * @param map hash map of resource units, which should be remembered |
---|
19 | * @param time the moment in time when this resource configuration was created |
---|
20 | */ |
---|
21 | public ResourceHistoryItem(Map<ResourceUnitName, ResourceUnit> map, DateTime time){ |
---|
22 | this.usedResources = map; |
---|
23 | this.timeStamp = time; |
---|
24 | } |
---|
25 | |
---|
26 | public Map<ResourceUnitName, ResourceUnit> getResourceUnits(){ |
---|
27 | return usedResources; |
---|
28 | } |
---|
29 | |
---|
30 | public DateTime getTimeStamp(){ |
---|
31 | return timeStamp; |
---|
32 | } |
---|
33 | |
---|
34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.