|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.cilib.algorithm.AlgorithmStack
public class AlgorithmStack
Maintain the currently running algorithm stack. The currently executing algorithm will be on the top of the stack.
| Constructor Summary | |
|---|---|
AlgorithmStack()
Create a new AlgorithmStack instance. |
|
| Method Summary | |
|---|---|
List<Algorithm> |
asList()
Return an unmodifiable list of Algorithm instances. |
Algorithm |
peek()
Get the Algorithm that is currently at the top of the stack. |
Algorithm |
pop()
Remove the current top of the stack and return it. |
void |
push(Algorithm algorithm)
Push the current Algorithm onto the stack. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlgorithmStack()
| Method Detail |
|---|
public void push(Algorithm algorithm)
algorithm - The Algorithm to push.public Algorithm pop()
public Algorithm peek()
public List<Algorithm> asList()
Algorithm instances. The list is the path of currently
running algorithms. The returned list will have a size > 1, if and only if
the algorithm is a composition of other algorithms.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||