cartago
Interface ICartagoContext

All Known Implementing Classes:
AgentBody

public interface ICartagoContext

Cartago Context Interface - set of primitives to work inside a workspace.

Author:
aricci

Method Summary
 void doAction(long actionId, ArtifactId id, Op op, IAlignmentTest test, long timeout)
          Use an artifact by requesting the execution of the specified operation.
 void doAction(long actionId, Op op, IAlignmentTest test, long timeout)
          Use an artifact by requesting the execution of the specified operation.
 void doAction(long actionId, java.lang.String name, Op op, IAlignmentTest test, long timeout)
          Use an artifact by requesting the execution of the specified operation.
 AgentId getAgentId()
          Get agent id in the workspace
 WorkspaceId getWorkspaceId()
          Get workspace id
 

Method Detail

doAction

void doAction(long actionId,
              ArtifactId id,
              Op op,
              IAlignmentTest test,
              long timeout)
              throws CartagoException
Use an artifact by requesting the execution of the specified operation.

Parameters:
actionId - identifier of the use action - used by the callback
id - target artifact
op - operation to execute
test - alignment test - null if not specified
timeout - operation timeout - -1 if not specified
Throws:
CartagoException

doAction

void doAction(long actionId,
              java.lang.String name,
              Op op,
              IAlignmentTest test,
              long timeout)
              throws CartagoException
Use an artifact by requesting the execution of the specified operation.

Parameters:
actionId - identifier of the use action - used by the callback
name - target artifact
op - operation to execute
test - alignment test - null if not specified
timeout - operation timeout - -1 if not specified
Throws:
CartagoException

doAction

void doAction(long actionId,
              Op op,
              IAlignmentTest test,
              long timeout)
              throws CartagoException
Use an artifact by requesting the execution of the specified operation.

Parameters:
actionId - identifier of the use action - used by the callback
name - target artifact
op - operation to execute
test - alignment test - null if not specified
timeout - operation timeout - -1 if not specified
Throws:
CartagoException

getWorkspaceId

WorkspaceId getWorkspaceId()
                           throws CartagoException
Get workspace id

Returns:
Throws:
CartagoException

getAgentId

AgentId getAgentId()
                   throws CartagoException
Get agent id in the workspace

Returns:
Throws:
CartagoException


>DEIS - University of Bologna