org.almendra.janet.ade.demo.fibonacci
Class FibonacciBalancingCommand
java.lang.Object
org.almendra.janet.ade.demo.fibonacci.FibonacciCommand
org.almendra.janet.ade.demo.fibonacci.FibonacciBalancingCommand
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, ICommand, IWorkLoadBalancingCommand, IWorkLoadCommand
public class FibonacciBalancingCommand
- extends FibonacciCommand
- implements IWorkLoadBalancingCommand, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QualifiedName
public static final java.lang.String QualifiedName
- See Also:
- Constant Field Values
completedTimes
protected int completedTimes
completedIterations
protected int completedIterations
a1
protected java.math.BigInteger a1
a2
protected java.math.BigInteger a2
FibonacciBalancingCommand
protected FibonacciBalancingCommand()
- Creates a new
FibonacciBalancingCommand
object.
FibonacciBalancingCommand
public FibonacciBalancingCommand(int input,
int times)
- Creates a new
FibonacciBalancingCommand
object.
getQualifiedName
public java.lang.String getQualifiedName()
- Description copied from interface:
ICommand
- Answer the fully qualified name of the command, e.g. package and class name.
- Specified by:
getQualifiedName
in interface ICommand
- Returns:
toLogString
public java.lang.String toLogString()
- Description copied from interface:
ICommand
- Return a string printing a command onto a string used for logging.
- Specified by:
toLogString
in interface ICommand
- Returns:
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Description copied from interface:
ICommand
- Make sure the user can rely on a command to be cloneable. Needed by the system
to clone commands in simulated mode which is necessary so that every agent receives
a command with a pointer of its own which is the case in distributed mode anyway.
- Specified by:
clone
in interface ICommand
- Overrides:
clone
in class FibonacciCommand
- Returns:
-
- Throws:
java.lang.CloneNotSupportedException
getCompletedTimes
public int getCompletedTimes()
- Returns:
- Returns the completedTimes.
setCompletedTimes
public void setCompletedTimes(int times)
- Parameters:
completedTimes
- The completedTimes to set.
getCompletedIterations
public int getCompletedIterations()
- Returns:
- Returns the completedIterations.
setCompletedIterations
public void setCompletedIterations(int iterations)
- Parameters:
completedIterations
- The completedIterations to set.
getTotalTimes
public int getTotalTimes()
- Overrides:
getTotalTimes
in class FibonacciCommand
- Returns:
- Returns the totalTimes.
setTotalTimes
public void setTotalTimes(int totalTimes)
- Parameters:
totalTimes
- The totalTimes to set.
getA1
public java.math.BigInteger getA1()
- Returns:
- Returns the a1.
getA2
public java.math.BigInteger getA2()
- Returns:
- Returns the a2.
setA1
public void setA1(java.math.BigInteger a1)
- Parameters:
a1
- The a1 to set.
setA2
public void setA2(java.math.BigInteger a2)
- Parameters:
a2
- The a2 to set.