Revision 477,
782 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[477] | 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 | public class ResourceHistoryItem { |
---|
| 11 | |
---|
| 12 | protected Map<ResourceUnitName, ResourceUnit> usedResources; |
---|
| 13 | protected DateTime timeStamp; |
---|
| 14 | |
---|
| 15 | /** |
---|
| 16 | * |
---|
| 17 | * @param map hash map of resource units, which should be remembered |
---|
| 18 | * @param time the moment in time when this resource configuration was created |
---|
| 19 | */ |
---|
| 20 | public ResourceHistoryItem(Map<ResourceUnitName, ResourceUnit> map, DateTime time){ |
---|
| 21 | this.usedResources = map; |
---|
| 22 | this.timeStamp = time; |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | public Map<ResourceUnitName, ResourceUnit> getResourceUnits(){ |
---|
| 26 | return usedResources; |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | public DateTime getTimeStamp(){ |
---|
| 30 | return timeStamp; |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.