|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaos.jack.jak.util.Watchable
aos.jack.jak.cursor.Cursor
aos.jack.util.cursor.ArrayCursor
ArrayCursor is a class that can be used to bind logical variables to the values of an array.
Field Summary |
Fields inherited from class aos.jack.jak.cursor.Cursor |
FALSE, falseCursor, TRUE, trueCursor, UNKNOWN |
Constructor Summary | |
ArrayCursor(java.lang.Object[] a,
Variable v)
Constructs an ArrayCursor with the given array and Variable |
|
ArrayCursor(java.lang.Object[] a,
Variable v,
int s,
int e)
Constructs an ArrayCursor with the given array and Variable, and a subarray to iterate through. |
Method Summary | |
void |
finished()
This informs the cursor that it is not going to be used again. |
boolean |
isTriggered()
Returns false. |
Cursor |
negate()
This is called to negate the value of the cursor. |
boolean |
next()
Binds the Variable to the next value in the array (or subarray) |
void |
register(java.util.Observer o)
|
Cursor |
reset(aos.jack.jak.core.Generator g,
int index)
Resets the cursor. |
void |
undo()
Undo tells the cursor to backtrack anything it has done. |
boolean |
unRegister(java.util.Observer o)
|
Methods inherited from class aos.jack.jak.util.Watchable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ArrayCursor(java.lang.Object[] a, Variable v)
a
- The array to iterate through.v
- A Variable to bind to the values of the array.public ArrayCursor(java.lang.Object[] a, Variable v, int s, int e)
a
- The array to iterate throughv
- A logical variable to bind to each elements
- The start of a region to iterate through in the arraye
- The end of a region to iterate through in the arrayMethod Detail |
public boolean next()
next
in class Cursor
public Cursor reset(aos.jack.jak.core.Generator g, int index)
Cursor
reset
in class Cursor
g
- The generator that generates an equivalent cursorindex
- The index of the equivalent cursor in the generator.
public Cursor negate()
Cursor
negate
in class Cursor
public void undo()
Cursor
undo
in class Cursor
public void finished()
Cursor
finished
in class Cursor
public boolean isTriggered()
isTriggered
in class Cursor
public void register(java.util.Observer o)
register
in class Cursor
public boolean unRegister(java.util.Observer o)
unRegister
in class Cursor
|
JACK 5.4 Application Interface | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
US Government Restricted Rights
The JACK Modules and relevant Software Material have been developed entirely at private expense and are accordingly provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013 or subparagraph (c)(1) and (2) of the Commercial Computer Software Restricted Rights and 48 CFR 52.2270-19, as applicable.