|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spago.navigation.LightNavigator
public class LightNavigator
The Class 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 it.eng.spago.navigation.NavigationException
MarkedRequest
element to the stack.
markedRequest
- the MarkedRequest
object to be added to the stack
NavigationException
- the navigation exceptionpublic MarkedRequest goBackToPosition(int i) throws it.eng.spago.navigation.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
- the navigation exceptionpublic void replaceLast(MarkedRequest markedRequest) throws it.eng.spago.navigation.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
- the navigation exceptionpublic void reset()
public MarkedRequest goBackToMark(java.lang.String mark) throws it.eng.spago.navigation.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
- the navigation exceptionpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |