Revision 104,
936 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[104] | 1 | package schedframe.scheduling.plugin.local; |
---|
| 2 | |
---|
| 3 | import java.util.List; |
---|
| 4 | import java.util.Map; |
---|
| 5 | |
---|
| 6 | import schedframe.resources.units.ResourceUnit; |
---|
| 7 | import schedframe.scheduling.utils.ResourceParameterName; |
---|
| 8 | import test.rewolucja.resources.physical.base.ComputingResource; |
---|
| 9 | |
---|
| 10 | public interface ResourceAllocationInterface { |
---|
| 11 | |
---|
| 12 | /** |
---|
| 13 | * Allocates resource units( marks as used) on the basis of given resource |
---|
| 14 | * units. |
---|
| 15 | * |
---|
| 16 | * @param freeRes |
---|
| 17 | * resource units to be consumed |
---|
| 18 | */ |
---|
| 19 | public boolean allocateResources(Map<ResourceParameterName, ResourceUnit> freeRes); |
---|
| 20 | |
---|
| 21 | /** |
---|
| 22 | * Frees given resource units. |
---|
| 23 | * |
---|
| 24 | * @param lastUsedResources |
---|
| 25 | * resource units to be free |
---|
| 26 | */ |
---|
| 27 | public void freeResources(Map<ResourceParameterName, ResourceUnit> lastUsedResources); |
---|
| 28 | |
---|
| 29 | //public void allocateProcessors(Map<ResourceParameterName, ResourceUnit> freeRes); |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | //public void clearPendingProcessors(List<Resource> choosenResources); |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.