|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spago.navigation.LightNavigator
Constructor Summary | |
LightNavigator()
|
Method Summary | |
void |
add(MarkedRequest markedRequest)
Adds a MarkedRequest element to the stack. |
MarkedRequest |
goBackToMark(java.lang.String mark)
Retrieves the more recent MarkedRequest object in the stack with the mark passed at input
and deletes the more recent MarkedRequest objects present in the stack. |
MarkedRequest |
goBackToPosition(int i)
Retrieves the MarkedRequest object at the desired position in the stack and deletes
the more recent MarkedRequest objects present in the stack. |
void |
replaceLast(MarkedRequest markedRequest)
Deletes the more recent MarkedRequest object in the stack and adds
the MarkedRequest passed at input in the first position of the stack. |
void |
reset()
Resets the stack. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LightNavigator()
Method Detail |
public void add(MarkedRequest markedRequest) throws NavigationException
MarkedRequest
element to the stack.
markedRequest
- the MarkedRequest
object to be added to the stack
NavigationException
public MarkedRequest goBackToPosition(int i) throws NavigationException
MarkedRequest
object at the desired position in the stack and deletes
the more recent MarkedRequest
objects present in the stack.
i
- The int representing the position of the stack.
NavigationException
- if the position at input is not present in the stack
NavigationException
public void replaceLast(MarkedRequest markedRequest) throws NavigationException
MarkedRequest
object in the stack and adds
the MarkedRequest
passed at input in the first position of the stack.
markedRequest
- the MarkedRequest
object that will replace the more recent MarkedRequest
in the stack
NavigationException
- if teh MarkedRequest
object at input is null of if the stack is empty.
NavigationException
public void reset()
public MarkedRequest goBackToMark(java.lang.String mark) throws NavigationException
MarkedRequest
object in the stack with the mark passed at input
and deletes the more recent MarkedRequest
objects present in the stack.
mark
- The string mark of the desired MarkedRequest
object in the stack.
NavigationException
- if there are no MarkedRequest
objects with the mark passed at input.
NavigationException
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |