edu.ucsb.cs.jicos.services.tasks
Class AddInteger

java.lang.Object
  extended by edu.ucsb.cs.jicos.services.Task
      extended by edu.ucsb.cs.jicos.services.tasks.AddInteger
All Implemented Interfaces:
java.io.Serializable

public final class AddInteger
extends Task

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.ucsb.cs.jicos.services.Task
ALL_INPUTS
 
Constructor Summary
AddInteger()
           
 
Method Summary
 java.lang.Object execute(Environment environment)
          This method's returned value is the Integer whose intValue is the sum of the intValues of its Integer inputs.
 boolean executeOnServer(Environment environment)
          This task executes on the task server.
 
Methods inherited from class edu.ucsb.cs.jicos.services.Task
compute, execute, executeIncrementally, getInput, getTaskId, isAtomic, numInputs, numUnsetInputs, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddInteger

public AddInteger()
Method Detail

execute

public java.lang.Object execute(Environment environment)
This method's returned value is the Integer whose intValue is the sum of the intValues of its Integer inputs.

Specified by:
execute in class Task
Parameters:
environment - Not used by this Task.
Returns:
the Integer whose intValue is the sum of the intValues of its Integer inputs.

executeOnServer

public boolean executeOnServer(Environment environment)
This task executes on the task server.

Overrides:
executeOnServer in class Task
Parameters:
environment - Session environment (ignored).
Returns:
true: This task executes on the task server.


Jicos: http://cs.ucsb.edu/projects/jicos