public interface IArtifactAdapter
Modifier and Type | Method and Description |
---|---|
void |
doOperation(cartago.OpExecutionFrame info)
Request the execution of an operation
|
Manual |
getManual()
Get the artifact manual
|
double |
getObservabilityRadius()
return current artifact obs radius
|
java.util.List<OpDescriptor> |
getOperations()
Get the operations
|
java.util.List<OperationInfo> |
getOpInExecution()
Get current operation in execution
|
AbstractWorkspacePoint |
getPosition()
returns current artifact position
|
boolean |
hasOperation(Op op)
Check if the artifact has the specified operation
|
void |
initArtifact(ArtifactConfig cfg)
Init the artifact.
|
void |
linkTo(ArtifactId aid,
java.lang.String portName)
Link to an artifact, specifying the out port
|
java.util.List<ArtifactObsProperty> |
readProperties()
Read all properties
|
ArtifactObsProperty |
readProperty(java.lang.String propertyName)
Read a property
|
void initArtifact(ArtifactConfig cfg) throws CartagoException
cfg
- initial configuration.CartagoException
void doOperation(cartago.OpExecutionFrame info) throws CartagoException
info
- information about the operationCartagoException
ArtifactObsProperty readProperty(java.lang.String propertyName) throws CartagoException
propertyName
- CartagoException
java.util.List<ArtifactObsProperty> readProperties()
CartagoException
Manual getManual()
void linkTo(ArtifactId aid, java.lang.String portName) throws CartagoException
aid
- portName
- CartagoException
java.util.List<OpDescriptor> getOperations() throws CartagoException
CartagoException
java.util.List<OperationInfo> getOpInExecution() throws CartagoException
CartagoException
boolean hasOperation(Op op)
op
- AbstractWorkspacePoint getPosition()
double getObservabilityRadius()
>DEIS - University of Bologna