Commonly Overridden Methods (Actor Framework)

Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

The following table lists Actor Framework class methods that you commonly override in descendant classes.

Palette ObjectDescription
Actor:Actor Core [Protected](Filename: Actor Framework.lvlib:Actor.lvclass:Actor Core.vi)

Receives messages to the actor, reacts to them, and initiates any error handling that may shut the actor down.

Descendant classes may override this VI to append parallel tasks for the actor to complete while it handles messages. Overrides use the Call Parent Class Method node.
Actor:Handle Error [Protected](Filename: Actor Framework.lvlib:Actor.lvclass:Handle Error.vi)

Defines how the actor handles an error that occurred while processing a message. By default, this method does nothing except stop the actor.
Actor:Handle Last Ack Core [Protected](Filename: Actor Framework.lvlib:Actor.lvclass:Handle Last Ack Core.vi)

Defines how the caller actor responds to the Last Ack message from a nested actor. The Last Ack message is the final message a nested actor sends to its caller before it shuts down. The message contains information about the final state of the nested actor.

By default, this method does nothing except return any error the nested actor sent. A descendant class may override this method to define behavior.
Actor:Pre Launch Init [Protected](Filename: Actor Framework.lvlib:Actor.lvclass:Pre Launch Init.vi)

Defines behavior that occurs after the Launch Nested Actor method is invoked but before the actor's Actor Core method begins running.

By default, this method does nothing. A descendant class may override it to define behavior.
Actor:Stop Core [Protected](Filename: Actor Framework.lvlib:Actor.lvclass:Stop Core.vi)

Defines what the actor does before it stops. Use the final error code input to determine whether the actor shut down in response to an error.

By default, this method passes the Stop message along to all auto-stop nested actors. A descendant class may override this method to define additional behavior, such as shutting down any processes the actor initiated in its override of the Actor Core method.
Message:Do(Filename: Actor Framework.lvlib:Message.lvclass:Do.vi)

Defines what a message does when it is received by an actor. Generally, a message instructs an actor to invoke one of its methods. By default, this method does nothing. A child class must override it to define behavior.
Message:Drop Message Core [Protected](Filename: Actor Framework.lvlib:Message.lvclass:Drop Message Core.vi)

Defines what a message does if it is in the message queue when the queue is released. At this point, the actor has shut down, so it will never process the message.

By default, this method does nothing. A child class may override it to define behavior. National Instruments provides the Reply Msg class to override this method. This class releases its internal queue, which causes any caller of the Send Message and Wait For Response method to stop waiting and return an error.
Reply Msg:Do Core [Protected](Filename: Actor Framework.lvlib:Reply Msg.lvclass:Do Core.vi)

Defines what an actor does when it receives Reply Message. This method also defines the Reply that is returned to the actor that sent Reply Message.

By default, this method does nothing, and Reply is the ancestor Message class. A child class must override this method to define behavior and specify a child of the Message class to return in the Reply output.