Class Index
static org.cote.js.wires.PrimitiveWire
version 1.9.18
Static instance of PrimitiveWireImpl
This class participates in the engine library.
org.cote.js.wires.PrimitiveWireImpl
version 1.9.18
Utility for binding JavaScript functions together.
This class participates in the engine library.
Index
Property Index
- public object_config (internal): Object API structure for storing sub structures: object_config.pointers and object_config.status.
- public object_id (internal): Unique instance identifier.
- public object_type (internal): The type of this object.
- public object_version (internal): Version of the object class.
- public ready_state (internal): Object load and execution state. Follows: 0 unitialized, 1 through 3 variant, 4 ready, 5 destroyed.
Method Index
- public fireWire: Causes the specified wire to be invoked.
- public getObjectId: Returns the unique id of the object.
- public getObjectType: Returns the type of the object.
- public getObjectVersion: Returns the version of the object.
- public getPointers: Returns the object_config.pointers sub structure.
- public getReadyState: Returns the state of the object.
- public getStatus: Returns the object_config.status sub structure.
- public getWire (internal): Returns the wire object based on the specified Identifier.
- public invoke: Invokes a wire, causing the action-handler chain to be processed.
- public sigterm: Sends termination signal to destroy object.
- public wire: Creates and returns a primitive wire based on the specified parameters.
Properties
object_config
Object API structure for storing sub structures: object_config.pointers and object_config.status.
Syntax
object = object.object_config
object_id
Unique instance identifier.
Syntax
String = object.object_id
object_type
The type of this object.
Syntax
String = object.object_type
object_version
Version of the object class.
Syntax
String = object.object_version
ready_state
Object load and execution state. Follows: 0 unitialized, 1 through 3 variant, 4 ready, 5 destroyed.
Syntax
int = object.ready_state
Methods
fireWire
Causes the specified wire to be invoked.
Syntax
void fireWire(
i
)
Parameters
- i as String : Identifier of the primitive wire.
getObjectId
Returns the unique id of the object.
Syntax
i = getObjectId(
)
Returns
i as String: The unique object instance id.
getObjectType
Returns the type of the object.
Syntax
t = getObjectType(
)
Returns
t as String: The type of the object instance.
getObjectVersion
Returns the version of the object.
Syntax
v = getObjectVersion(
)
Returns
v as String: The version of the object instance.
getPointers
Returns the object_config.pointers sub structure.
Syntax
o = getPointers(
)
Returns
o as object: The object_config.pointers substructure.
getReadyState
Returns the state of the object.
Syntax
s = getReadyState(
)
Returns
s as int: The object ready state.
getStatus
Returns the object_config.status sub structure.
Syntax
o = getStatus(
)
Returns
o as object: The object_config.status substructure.
getWire
Returns the wire object based on the specified Identifier.
Syntax
r = getWire(
i
)
Parameters
- i as String : Identifier of the primitive wire.
Returns
r as object: Returns a wire object.
invoke
Invokes a wire, causing the action-handler chain to be processed.
Syntax
r = invoke(
i, a, b, z, p, m
)
Parameters
- i as String : Identifier of the primitive wire to invoke.
- a as array (optional): Arguments to pass to the wired functions.
- b as boolean (optional): Bit indicating the handler should be force-fired even if the action did not evaluate to true.
- z as boolean (optional): Bit indicating the handler should be skipped.
- p as boolean (optional): Bit indicating the wire should be preserved.
- m as boolean (optional): Bit indicating the wire may be used more than once.
Returns
r as boolean: Returns true if the chain completed successfully, false if otherwise.
sigterm
Sends termination signal to destroy object.
Syntax
void sigterm(
)
wire
Creates and returns a primitive wire based on the specified parameters.
Syntax
i = wire(
xp, x, yp, y, ep, e, tl
)
Parameters
- xp as variant : Object, or string evaluation, to which the action function is defined.
- x as function : The action function.
- yp as variant : Object, or string evaluation, to which the handler function is defined.
- y as function : The hander function.
- ep as variant : Object, or string evaluation, to which the error function is defined.
- e as function : The error function.
- tl as String (optional): The label prefix of the wire.
Returns
i as String: Returns the identifier of the primitive wire object.