|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapi.Task
api.Successor
tasks.Sum
public class Sum
Sum class. This is a successor class for fibonacci results.
Constructor Summary | |
---|---|
Sum(TaskId taskId,
TaskId successorId,
int successorInputIndex,
int n)
Constructor for Sum class |
Method Summary | |
---|---|
Result |
execute()
Computes the sum of its input objects |
boolean |
executeOnServer()
Method for checking whether this task should execute on the server |
int |
getN()
Gets the fibonacci input value |
java.lang.String |
toString()
Returns a string representation of this fibonacci |
Methods inherited from class api.Successor |
---|
getInput, getInputSize, hasAllInput, setInput |
Methods inherited from class api.Task |
---|
compareTo, getShared, getSuccessorId, getSuccessorInputIndex, getTaskId, sendEvent, setComputer, updateShared |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Sum(TaskId taskId, TaskId successorId, int successorInputIndex, int n)
n
- the fibonacci inputtaskId
- task id of this Sum tasksuccessorId
- id of the successor tasksuccessorInputIndex
- input index of the successorMethod Detail |
---|
public int getN()
public boolean executeOnServer()
executeOnServer
in class Task
public Result execute()
execute
in class Task
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |