javax.constraints.scheduler.impl.BasicResourcePool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsr331-scheduler Show documentation
Show all versions of jsr331-scheduler Show documentation
This is a JSR331 package for scheduling and resource allocation problems
The newest version!
package javax.constraints.scheduler.impl;
import java.util.ArrayList;
import javax.constraints.scheduler.Resource;
import javax.constraints.scheduler.ResourcePool;
public class BasicResourcePool extends ArrayList implements ResourcePool {
String name;
public BasicResourcePool(String name) {
super();
this.name = name;
}
public String getName() {
return name;
}
public Resource get(int index) {
return (Resource)get(index);
}
public void add(int index,Resource resource) {
add(index,resource);
}
}