ARCS logo.js Augmented Reality Component System

Class: Invocation

Invocation

new Invocation(destination, slot, value)

Defines an invocation
Parameters:
Name Type Description
destination object component on which to perform invocation
slot string name of the slot
value mixed value passed to the invoked slot

Methods

<static> cast(obj, context)

Helper function that casts an invocation from a description
Parameters:
Name Type Description
obj object a raw description of the invocation
context object the context in which this invocation takes place.
Returns:
an invocation

getDestination() → {object}

Returns the destination component of this invocation
Returns:
destination component of this invocation
Type
object

getSlot() → {String}

Returns the slot name of this invocation
Returns:
slot name of this invocation
Type
String

getValue() → {mixed}

Returns the value used for this invocation
Returns:
value used for this invocation
Type
mixed

invoke()

Performs the invocation