public class AgentBody extends java.lang.Object implements ICartagoContext
Modifier and Type | Field and Description |
---|---|
protected ICartagoCallback |
agentCallback |
protected AgentBodyArtifact |
bodyArtifact |
protected java.util.LinkedList<ArtifactDescriptor> |
focusedArtifacts |
Modifier and Type | Method and Description |
---|---|
void |
addFocusedArtifacts(ArtifactDescriptor des) |
void |
doAction(long actionId,
ArtifactId aid,
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.
|
AgentBodyArtifact |
getAgentBodyArtifact() |
AgentId |
getAgentId()
Get agent id in the workspace
|
ICartagoCallback |
getCallback() |
WorkspaceId |
getWorkspaceId()
Get workspace id
|
WorkspaceKernel |
getWSPKernel() |
boolean |
isObserving(ArtifactId id) |
void |
removeFocusedArtifacts(ArtifactDescriptor des) |
void |
setBodyArtifact(AgentBodyArtifact art) |
void |
updateObsArtifactListWith(java.util.List<ObservableArtifactInfo> list,
java.util.List<ObservableArtifactInfo> stopFocus,
java.util.List<ObservableArtifactInfo> newFocus) |
protected ICartagoCallback agentCallback
protected java.util.LinkedList<ArtifactDescriptor> focusedArtifacts
protected AgentBodyArtifact bodyArtifact
public AgentId getAgentId()
ICartagoContext
getAgentId
in interface ICartagoContext
public WorkspaceId getWorkspaceId()
ICartagoContext
getWorkspaceId
in interface ICartagoContext
public WorkspaceKernel getWSPKernel()
public void setBodyArtifact(AgentBodyArtifact art)
public AgentBodyArtifact getAgentBodyArtifact()
public void doAction(long actionId, ArtifactId aid, Op op, IAlignmentTest test, long timeout) throws CartagoException
ICartagoContext
doAction
in interface ICartagoContext
actionId
- identifier of the use action - used by the callbackaid
- target artifactop
- operation to executetest
- alignment test - null if not specifiedtimeout
- operation timeout - -1 if not specifiedCartagoException
public void doAction(long actionId, java.lang.String name, Op op, IAlignmentTest test, long timeout) throws CartagoException
ICartagoContext
doAction
in interface ICartagoContext
actionId
- identifier of the use action - used by the callbackname
- target artifactop
- operation to executetest
- alignment test - null if not specifiedtimeout
- operation timeout - -1 if not specifiedCartagoException
public void doAction(long actionId, Op op, IAlignmentTest test, long timeout) throws CartagoException
ICartagoContext
doAction
in interface ICartagoContext
actionId
- identifier of the use action - used by the callbackop
- operation to executetest
- alignment test - null if not specifiedtimeout
- operation timeout - -1 if not specifiedCartagoException
public void addFocusedArtifacts(ArtifactDescriptor des)
public void removeFocusedArtifacts(ArtifactDescriptor des)
public ICartagoCallback getCallback()
public boolean isObserving(ArtifactId id)
public void updateObsArtifactListWith(java.util.List<ObservableArtifactInfo> list, java.util.List<ObservableArtifactInfo> stopFocus, java.util.List<ObservableArtifactInfo> newFocus)
>DEIS - University of Bologna