trait AmenityAutoRepair extends NtuStorageBehavior
A mixin for handling the automatic repair functionality of facility amenities. Auto-repair is facilitated primarily as a function of nanite transfer unit (NTU) provisions and is prompted by the amenity itself sustaining damage and being, at some level, capable of being repaired. In major facilities - technology plants, bio labs, etc. - this NTU is obtained from that facility's nanite resource silo. The amenity that wishes to be repaired asks the facility for nanite. The reply comes from the NTU source, or from the facility again. In exchange for the automatic repair, the silo looses some of its NTU stockpile and that entails all of the consequences of losing all of the NTU for the base. In smaller field tower bases, the lack of resource silo should not hinder operations as auto-repair is still carried out nonetheless. The consequences of losing NTU do not apply in this case; the field tower is considered to have unlimited, unshared NTU.
- Self Type
- AmenityAutoRepair with Damageable with RepairableEntity with Actor
- Source
- AmenityAutoRepair.scala
- Alphabetic
- By Inheritance
- AmenityAutoRepair
- NtuStorageBehavior
- Actor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type Receive = PartialFunction[Any, Unit]
- Definition Classes
- Actor
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def HandleNtuGrant(sender: ActorRef, src: NtuContainer, amount: Float): Unit
When reports of an NTU provision is returned to the requesting amenity, the amount of repair that can be performed is obtained and, if the amenity still requires those repairs, auto-repair executes a single tick.
When reports of an NTU provision is returned to the requesting amenity, the amount of repair that can be performed is obtained and, if the amenity still requires those repairs, auto-repair executes a single tick.
- Definition Classes
- AmenityAutoRepair → NtuStorageBehavior
- See also
RepairableAmenity
- def HandleNtuOffer(sender: ActorRef, src: NtuContainer): Unit
- Definition Classes
- AmenityAutoRepair → NtuStorageBehavior
- def HandleNtuRequest(sender: ActorRef, min: Float, max: Float): Unit
- Definition Classes
- AmenityAutoRepair → NtuStorageBehavior
- def NtuStorageObject: NtuContainer
- Definition Classes
- NtuStorageBehavior
- def StopNtuBehavior(sender: ActorRef): Unit
Stop the auto-repair timer.
Stop the auto-repair timer.
- Definition Classes
- AmenityAutoRepair → NtuStorageBehavior
- final def actuallyTryAutoRepair(): Boolean
Attempt to start auto-repair operation only if no operation is currently being processed.
Attempt to start auto-repair operation only if no operation is currently being processed. In case that an override to the normals operations of
tryAutoRepair
is necessary, but the superclass can not be invoked, this method is the backup of those operations to initiate auto-repair.- returns
true
, if the auto-repair process started specifically due to this call;false
, if it was already started, or did not start
- See also
tryAutoRepair
- def aroundPostRestart(reason: Throwable): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
- def aroundPostStop(): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
- def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
- def aroundPreStart(): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
- def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
- Annotations
- @InternalApi()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final val autoRepairBehavior: (AmenityAutoRepair.this)#Receive
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- implicit val context: ActorContext
- Definition Classes
- Actor
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noNtuSupplyCallback(): Unit
No (further) provisions of NTU to the potential requesting amenity will be forthcoming.
No (further) provisions of NTU to the potential requesting amenity will be forthcoming. Cancel any attempts at auto-repair.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def postRestart(reason: Throwable): Unit
- Definition Classes
- Actor
- Annotations
- @throws(classOf[java.lang.Exception])
- def postStop(): Unit
- Definition Classes
- Actor
- Annotations
- @throws(classOf[java.lang.Exception])
- def preRestart(reason: Throwable, message: Option[Any]): Unit
- Definition Classes
- Actor
- Annotations
- @throws(classOf[java.lang.Exception])
- def preStart(): Unit
- Definition Classes
- Actor
- Annotations
- @throws(classOf[java.lang.Exception])
- implicit final val self: ActorRef
- Definition Classes
- Actor
- final def sender(): ActorRef
- Definition Classes
- Actor
- final def stopAutoRepair(): Unit
Cancel any attempts at auto-repair by stopping any currently processing repair timer The operation can be resumed.
Cancel any attempts at auto-repair by stopping any currently processing repair timer The operation can be resumed.
- See also
stopAutoRepairFunctionality
- def storageBehavior: (AmenityAutoRepair.this)#Receive
- Definition Classes
- NtuStorageBehavior
- def supervisorStrategy: SupervisorStrategy
- Definition Classes
- Actor
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tryAutoRepair(): Boolean
Attempt to start auto-repair operation only if no operation is currently being processed.
Attempt to start auto-repair operation only if no operation is currently being processed.
- returns
true
, if the auto-repair process started specifically due to this call;false
, if it was already started, or did not start
- See also
actuallyTryAutoRepair
- def unhandled(message: Any): Unit
- Definition Classes
- Actor
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withNtuSupplyCallback(): Unit
Confirm that a provision of NTU to the potential requesting amenity is possible.
Confirm that a provision of NTU to the potential requesting amenity is possible. Attempt to start auto-repair operations.