|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uka.ipd.sdq.ByCounter.example.fibonacci.FibonacciAlgorithm
public class FibonacciAlgorithm
Implementation of an algorithm calculating Fibonacci numbers.
Chosen as the calculation requires only CPU. Algorithm is also used in class
de.uka.ipd.sdq.measurement.strategies.activeresource.cpu.FibonacciDemand
of the
ProtoCom framework.
Constructor Summary | |
---|---|
FibonacciAlgorithm()
|
Method Summary | |
---|---|
long |
fibonacci(long rounds)
Calculates a Fibonacci number given the number of rounds the algorithm should run. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FibonacciAlgorithm()
Method Detail |
---|
public long fibonacci(long rounds)
rounds
- Number of calculation rounds.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |