Revision 1415,
448 bytes
checked in by wojtekp, 11 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[477] | 1 | package schedframe.events; |
---|
| 2 | |
---|
[1415] | 3 | import schedframe.resources.computing.profiles.energy.ResourceEvent; |
---|
[1207] | 4 | import schedframe.resources.devices.PhysicalResource; |
---|
[477] | 5 | |
---|
| 6 | public class ResourceEventCommand implements EventCommand { |
---|
| 7 | |
---|
[1207] | 8 | private PhysicalResource resource; |
---|
[477] | 9 | |
---|
[1207] | 10 | public ResourceEventCommand(PhysicalResource resource) { |
---|
| 11 | this.resource = resource; |
---|
[477] | 12 | } |
---|
| 13 | |
---|
[1415] | 14 | public void execute(ResourceEvent event) { |
---|
[1207] | 15 | resource.getEventHandler().handleResourceEvent(event); |
---|
[477] | 16 | } |
---|
| 17 | |
---|
| 18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.