source: xssim/src/schedframe/scheduling/plugin/local/ResourceAllocationInterface.java @ 104

Revision 104, 936 bytes checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
RevLine 
[104]1package schedframe.scheduling.plugin.local;
2
3import java.util.List;
4import java.util.Map;
5
6import schedframe.resources.units.ResourceUnit;
7import schedframe.scheduling.utils.ResourceParameterName;
8import test.rewolucja.resources.physical.base.ComputingResource;
9
10public 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.