Class AbstractActuatorInRoomArtifact
java.lang.Object
cartago.Artifact
artifact.environment.roomartifact.AbstractActuatorInRoomArtifact
- Direct Known Subclasses:
AmbientLight
,Cooler
,Heater
,SurgicalLight
,Ventilation
public abstract class AbstractActuatorInRoomArtifact
extends cartago.Artifact
Abstract class that represent the base class for a CArtAgO boundary artifacts for an actuator placed
inside a Room within the Operating Block.
-
Nested Class Summary
Nested classes/interfaces inherited from class cartago.Artifact
cartago.Artifact.AbstractAsyncProcess
-
Field Summary
Fields inherited from class cartago.Artifact
observabilityRadius, position, thisOpId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionObtain the actuatorID of the actuator.Obtain the roomId where the artifact is placed.protected void
init
(ActuatorType actuatorType, RoomID roomId) Initialize the artifact.Methods inherited from class cartago.Artifact
await, await, await_time, beginExtSession, commit, defineNewOp, defineObsProperty, defineOp, delay, dispose, dispose, endExtSession, endExtSessionWithFailure, execInternalOp, execLinkedOp, execLinkedOp, failed, failed, getCreatorId, getCurrentOpAgentBody, getCurrentOpAgentId, getId, getLinkedArtifacts, getManualSrcFile, getObservabilityRadius, getObsProperty, getObsPropertyByTemplate, getOpKey, getOpUserName, getPosition, hasObsProperty, hasObsPropertyByTemplate, isLinked, log, lookupArtifact, makeArtifact, removeObsProperty, removeObsPropertyByTemplate, removeOp, setupOperations, setupPosition, signal, signal, updateObservabilityRadius, updateObsProperty, updatePosition
-
Constructor Details
-
AbstractActuatorInRoomArtifact
public AbstractActuatorInRoomArtifact()
-
-
Method Details
-
init
Initialize the artifact. This method is called by Jason agents.- Parameters:
actuatorType
- the type of the actuator.roomId
- the id of the room where the artifact is placed.
-
getRoomId
Obtain the roomId where the artifact is placed.- Returns:
- the room id.
-
getActuatorID
Obtain the actuatorID of the actuator.- Returns:
- the actuator id.
-