|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is a class to represent a set of resources that is possible for a given operation (require, produces, etc) of an activity and allows selecting one of them as the resource to actually be used.
Method Summary | |
void |
assignTo(int index)
Assigns the activity to use the resource at the given index |
Resource |
get(int index)
Returns a representation of the resource at the specified index. |
void |
removeAt(int index)
Removes the resource at the given index for the activity |
int |
size()
Returns the number of equivalent resources (ie the number of resources in this set) |
Method Detail |
public int size()
public Resource get(int index)
index
- index of resource being inquired about
public void assignTo(int index) throws jopt.csp.variable.PropagationFailureException
index
- index of resource
jopt.csp.variable.PropagationFailureException
public void removeAt(int index) throws jopt.csp.variable.PropagationFailureException
index
- index of resource
jopt.csp.variable.PropagationFailureException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |