Engine for Web Applications

org.cote.js.wires.primitive

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

Method Index

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

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

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

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

Returns

i as String: Returns the identifier of the primitive wire object.