edu.ucsb.cs.jicos.services
Class Result

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

public final class Result
extends java.lang.Object
implements java.io.Serializable

A data container for a computation's result. It essentially has 1) an identifier, so the application can know to which computation this result corresponds, and 2) the value, which is an Object.

See Also:
Serialized Form

Method Summary
 long getCriticalPathTime()
          Get the critical path time: A critical directed path is a path of tasks whose execution times sum to a number that is at least as long as any other directed path of tasks.
 ResultId getId()
          get the computation identifier: The identifier that distinguished this computation from all computations associated with the client's current registration session.
 long getTotalTaskTime()
          Not currently implemented
 java.lang.Object getValue()
          get the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCriticalPathTime

public long getCriticalPathTime()
Get the critical path time: A critical directed path is a path of tasks whose execution times sum to a number that is at least as long as any other directed path of tasks. This method returns that time, in milliseconds.

Returns:
critical path time, in milliseconds.

getId

public ResultId getId()
get the computation identifier: The identifier that distinguished this computation from all computations associated with the client's current registration session.

Returns:
the computation identifier.

getTotalTaskTime

public long getTotalTaskTime()
Not currently implemented

Returns:
Not currently implemented

getValue

public java.lang.Object getValue()
get the value.

Returns:
an Object, the computation's value.


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