public abstract class AbstractWSPRuleEngine
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractWSPRuleEngine() |
Modifier and Type | Method and Description |
---|---|
protected void |
disposeArtifact(ArtifactId id)
Dispose an existing artifact
|
protected boolean |
execOp(ArtifactId aid,
Op op)
Execute an operation
|
protected ArtifactId |
getArtifact(java.lang.String name)
Get the identifier of an artifact
|
protected java.lang.String[] |
getArtifactList()
Get the current artifact name list
|
protected ArtifactObsProperty |
getArtifactObsProp(ArtifactId id,
java.lang.String propName)
Get the value of an artifact observable property
|
protected void |
lock() |
protected ArtifactId |
makeArtifact(java.lang.String artifactName,
java.lang.String templateName,
java.lang.Object... params)
Create a new artifact
|
protected void |
processActionRequest(OpRequestInfo desc)
Process a new operation request
The request can inspected or changed or be forced to fail by using
the OpRequestInfo interface.
|
protected void |
processAgentJoinRequest(AgentJoinRequestInfo req)
Process a new request to join by an agent
The request can inspected or changed or be forced to fail by using
the AgentJoinRequestInfo interface.
|
protected void |
processAgentQuitRequest(AgentQuitRequestInfo req)
Process a new request to join by an agent
The request can inspected or changed or be forced to fail by using
the AgentQuitRequestInfo interface.
|
protected void |
unlock() |
protected void processActionRequest(OpRequestInfo desc)
desc
- operation request descriptorprotected void processAgentJoinRequest(AgentJoinRequestInfo req)
req
- request infoprotected void processAgentQuitRequest(AgentQuitRequestInfo req)
req
- request infoprotected final boolean execOp(ArtifactId aid, Op op) throws CartagoException
aid
- artifact identifierop
- operationCartagoException
protected final ArtifactId makeArtifact(java.lang.String artifactName, java.lang.String templateName, java.lang.Object... params) throws CartagoException
artifactName
- templateName
- params
- CartagoException
protected final void disposeArtifact(ArtifactId id) throws CartagoException
id
- CartagoException
protected final java.lang.String[] getArtifactList()
protected final ArtifactId getArtifact(java.lang.String name)
name
- name of the artifactprotected final ArtifactObsProperty getArtifactObsProp(ArtifactId id, java.lang.String propName) throws CartagoException
id
- artifact identifierpropName
- property nameCartagoException
protected final void lock() throws java.lang.InterruptedException
java.lang.InterruptedException
protected final void unlock() throws java.lang.InterruptedException
java.lang.InterruptedException
>DEIS - University of Bologna