org.almendra.janet.ade.demo.fibonacci
Class FibonacciSharingInterpreter

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

public class FibonacciSharingInterpreter
extends java.lang.Object
implements IInterpreter


Constructor Summary
FibonacciSharingInterpreter()
          Creates a new FibonacciSharingInterpreter object.
 
Method Summary
protected  java.math.BigInteger calculate(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

FibonacciSharingInterpreter

public FibonacciSharingInterpreter()
Creates a new FibonacciSharingInterpreter object.

Method Detail

commandNames

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

calculate

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

execute

public void execute(CommandAccessor cmdAccessor)
Specified by:
execute in interface IInterpreter