|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJaCoP.core.SimpleBacktrackableManager
JaCoP.core.IntervalBasedBacktrackableManager
public class IntervalBasedBacktrackableManager
| Field Summary |
|---|
| Fields inherited from class JaCoP.core.SimpleBacktrackableManager |
|---|
currentLevel, currentLevelMax, objects, trailContainsAllChanges |
| Constructor Summary | |
|---|---|
IntervalBasedBacktrackableManager(Backtrackable[] vars,
int noOfObjects,
int minHoleSize,
int maxNoOfIntervals)
It creates a interval based backtrackable manager. |
|
| Method Summary | |
|---|---|
void |
addChanged(int index)
It allows to inform the manager that a given item with id (index) has changed at given level. |
java.lang.String |
checkRemoveInvariant(int removedLevel)
It checks all backtrackable objects that they have not retained any level equal or above removedLevel. |
boolean |
isRecognizedAsChanged(int index)
It allows for easy testing if a given object is considered by the manager as the object which has changed and needs being informed about backtracking. |
void |
removeLevel(int removedLevel)
It allows to inform all objects which have changed at removedLevel that the backtracking from that level has occurred. |
void |
setLevel(int level)
It specifies the level which should become the active one in the manager. |
void |
setSize(int size)
It specifies how many objects within objects array are being actually managed. |
| Methods inherited from class JaCoP.core.SimpleBacktrackableManager |
|---|
getLevel, toString, update |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IntervalBasedBacktrackableManager(Backtrackable[] vars,
int noOfObjects,
int minHoleSize,
int maxNoOfIntervals)
vars - the number of objects.noOfObjects - the number of objects being handled.minHoleSize - the minimum size of the hole to be registered.maxNoOfIntervals - maximum number of holes (intervals) being registered.| Method Detail |
|---|
public void addChanged(int index)
SimpleBacktrackableManager
addChanged in interface BacktrackableManageraddChanged in class SimpleBacktrackableManagerindex - it specifies the index of the object which has changed.public void setLevel(int level)
SimpleBacktrackableManager
setLevel in interface BacktrackableManagersetLevel in class SimpleBacktrackableManagerlevel - the active level at which the changes will be recorded.public void removeLevel(int removedLevel)
removeLevel in interface BacktrackableManagerremoveLevel in class SimpleBacktrackableManagerremovedLevel - it specifies the level which is being removed.public java.lang.String checkRemoveInvariant(int removedLevel)
removedLevel - the level which has been removed and should not exist in any object.
public void setSize(int size)
setSize in interface BacktrackableManagersetSize in class SimpleBacktrackableManagersize - the number of objects in the array.public boolean isRecognizedAsChanged(int index)
isRecognizedAsChanged in interface BacktrackableManagerisRecognizedAsChanged in class SimpleBacktrackableManagerindex - the position of the object which status is in question.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||