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