api
Interface Task2Computer


public interface Task2Computer

Interface that specifies communication from a task to its executing computer.


Method Summary
 Shared getShared()
          Gets the newest shared object from the computer
 void sendEvent(java.lang.Object event)
          sends an event to the remote listeners from the executing computer
 boolean updateShared(Shared shared)
          sends a shared update to the computer
 

Method Detail

updateShared

boolean updateShared(Shared shared)
sends a shared update to the computer

Parameters:
shared - shared object
Returns:
true if this object was newer than the current shared

getShared

Shared getShared()
Gets the newest shared object from the computer

Returns:
the newest shared object from the computer

sendEvent

void sendEvent(java.lang.Object event)
sends an event to the remote listeners from the executing computer

Parameters:
event - event to broadcast to listeners