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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Obtain 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractActuatorInRoomArtifact

      public AbstractActuatorInRoomArtifact()
  • Method Details

    • init

      protected void init(ActuatorType actuatorType, RoomID roomId)
      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

      public RoomID getRoomId()
      Obtain the roomId where the artifact is placed.
      Returns:
      the room id.
    • getActuatorID

      public ActuatorID getActuatorID()
      Obtain the actuatorID of the actuator.
      Returns:
      the actuator id.