Revision 477,
520 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[477] | 1 | package schedframe.events; |
---|
| 2 | |
---|
| 3 | import schedframe.resources.computing.ComputingResource; |
---|
| 4 | |
---|
| 5 | public class ResourceEventCommand implements EventCommand { |
---|
| 6 | |
---|
| 7 | private ComputingResource compResource; |
---|
| 8 | |
---|
| 9 | public ResourceEventCommand(ComputingResource compResource) { |
---|
| 10 | this.compResource = compResource; |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | public void execute(EventType evType) { |
---|
| 14 | //TODO - add event factory |
---|
| 15 | throw new RuntimeException("not implemented"); |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | public void execute(Event event) { |
---|
| 19 | compResource.getEventHandler().handleResourceEvent(event); |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.