source: DCWoRMS/branches/toulouse/src/schedframe/scheduling/plugin/local/ResourceAllocation.java @ 517

Revision 517, 660 bytes checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package schedframe.scheduling.plugin.local;
2
3import java.util.Map;
4
5import schedframe.resources.units.ResourceUnit;
6import schedframe.resources.units.ResourceUnitName;
7
8public interface ResourceAllocation {
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}
Note: See TracBrowser for help on using the repository browser.