org.almendra.janet.cas.demo.fibonacci
Class FibonacciInterpreter

java.lang.Object
  extended by org.almendra.janet.cas.demo.fibonacci.FibonacciInterpreter
All Implemented Interfaces:
IInterpreter

public class FibonacciInterpreter
extends java.lang.Object
implements IInterpreter

Author:
Oliver

Constructor Summary
FibonacciInterpreter()
           
 
Method Summary
protected  java.math.BigInteger calculateFibonacci(int nthFibonacciNumber)
           
 StringVector commandNames()
           
 void execute(CommandAccessor cmdAccessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FibonacciInterpreter

public FibonacciInterpreter()
Method Detail

execute

public void execute(CommandAccessor cmdAccessor)
Specified by:
execute in interface IInterpreter
See Also:
org.almendra.commons.cas.node.IInterpreter#execute(org.almendra.commons.cas.node.ICommand, org.almendra.commons.cas.node.IObjectSpace)

calculateFibonacci

protected java.math.BigInteger calculateFibonacci(int nthFibonacciNumber)
Parameters:
nthFibonacciNumber -
Returns:

commandNames

public StringVector commandNames()
Specified by:
commandNames in interface IInterpreter