Construct STP SDK object
Connector object through which the SDK communicates with STP
A new COA has been added
Unique identifier of the added COA
Definition of COA to add
True if this is the result of an undo operation (of a to COA delete)
A COA has been deleted
Unique identifier of the added COA
True if this is the result of an undo operation (of a to COA add)
A COA has been modified
Unique identifier of the added COA
Modified COA definition
True if this is the result of an undo operation (of a to COA modify)
Custom operation has been detected
as defined in the Edits configuration table
associated gesture (point, line, area)
Sketched gestures have either been processed, or failed to process and can be cleared of the UI
Map operation (such as pan, zoom) has been detected
'pan' | 'zoom'| ...
associated gesture (point, line, area)
A pen down action was performed by a user
Pen down time
Pen down map coordinate
A new role has become current/active
User speech was successfully transcribed
Phrases that were recognized
Message indicating an STP issue or event to be displayed to the user
Message describing the issue
Type of message (see the corresponding enum)
A new symbol has been added
One or more symbol interpretations, ranked by likelihood
True if this is the result of an undo operation (of a symbol delete)
A symbol has been deleted
Unique symbol identifier of the deleted symbol
True if this is the result of an undo operation (of a symbol add)
A symbol edit operation (such as select) has been detected Notice that Delete, Move and attribute editing operations are automatically handled by STP These are just events tht require action from the client UI
'select' | other custom operations
associated gesture (point, line, area)
A symbol has been modified
Unique symbol identifier of the modified symbol
Symbol added
True if this is the result of an undo operation (of a symbol modify)
An update report for a symbol has been received, e.g from C2SIM
Unique symbol identifier of the updated symbol
Updated symbol properties
A new task has been added
Unique identifier of the added task
Ranked collection of alternate task interpretations
True if this is the result of an undo operation (of a to unit add)
A task has been deleted
Unique identifier of the deleted task
True if this is the result of an undo operation (of a to unit add)
A task has been modified
Unique identifier of the modified task
Ranked collection of alternate task interpretations
True if this is the result of an undo operation (of a to unit add)
A new task org has been added
Added TO
True if this is the result of an undo operation (of a TO delete)
A task org has been deleted
Unique identifier of the deleted TO
True if this is the result of an undo operation (of a TO add)
A task org has been modified
Unique symbol identifier of the modified symbol
Modified TO
True if this is the result of an undo operation (of a TO modify)
A new task org relationship has been added
Relationship added
True if this is the result of an undo operation (of a to unit delete)
A task org relationship has been deleted
Unique identifier of the deleted to relationship
True if this is the result of an undo operation (of a to unit add)
A task org relationship has been modified
Unique identifier of the modified to relationship
Relationship added
True if this is the result of an undo operation (of a to unit modify)
A new task org has become current/active
A new task org unit has been added
Unit added
True if this is the result of an undo operation (of a to unit delete)
A task org unit has been deleted
Unique identifier of the deleted to unit
True if this is the result of an undo operation (of a to unit add)
A task org unit has been modified
Unique symbol identifier of the modified symbol
Unit added
True if this is the result of an undo operation (of a to unit modify)
Add a new COA to the scenario
COA to add
Request that a symbol be added by STP. The actual addition should only happen when STP responds with SymbolAdded
Symbol to be added
Request that a task be added by STP. The actual addition should only happen when STP responds with TaskAdded
Task to add
Add a new TO to the scenario
TO to add
TO's unique id
Request that a Task Org Relationship be added by STP. The actual addition should only happen when STP responds with TaskOrgRelationshipAdded
Request that a Task Org Unit be added by STP. The actual addition should only happen when STP responds with TaskOrgUnitAdded
Task Org Unit to be added
Pick an alternate recognition for a symbol/task. The STP runtime responds with an object chosen notification
Unique identifier of the symbol for which an alternate is being picked
Index indicating which of the current alternates is selected
Pick an alternate as the confirmed task. The STP runtime responds with a task update notification in which uiStatus is set to 'confirmed'
Unique identifier of the task for which an alternate is being confirmed
Index indicating which of the current alternates is selected for confirmation
Optional
isConfirmed: boolean = trueTrue (default) if swithing task to confirmed status, false back to confirming
Connect to the STP engine Important: the event function properties need to be assigned to handlers before this method is called
Name of this component / service
Number fo seconds to wait for a connection before failing
Optional
machineId: stringOptional machine Id to use. If not provided, it is set to some unique Id.
Optional
sessionId: stringOptional session Id to use. If not provided:
C2SIM proxy factory
Optional
options: StpC2SIMOptionsOptional C2SIM generation options overriding the server's defaults
Object to be used to interact with C2SIM
Import a new COA into the scenario The COA is imported with a new unique Ids, i.e., the content is used as a template That includes the Id of the COA definition as well as the individual symbols's
Optional
timeout: numberOptional timeout in seconds
New COA's unique id
Import TO into the scenario The TO is imported with a new unique Ids, i.e., the content is used as a template The individual task org units retain their original unique Ids
Content to load, formatted as object_set([[element1], [element2], ...])
Optional
timeout: numberOptional timeout in seconds
TO's unique id
Load a new scenario, replacing any previous content that might have been loaded into STP
Content to load, formatted as object_set([[element1], [element2], ...])
Optional
timeout: numberOptional timeout in seconds
Generic method that handles the STP requests - messages for which results are expected
Name of the event / method to request
parameter object
Optional
timeout: numberOptional timeout for this request
Send sketched gesture to STP
Map region screen bounds in pixels
Map top, left coordinates
Map bottom, right coordinates
Coordinates of the sketched gesture
Time the first point was placed
Time the last point was placed
Symbol Ids of all the symbols that were intersected by the sketched gesture - used for editing operations, e.g. when user sketches over a symbol and says "delete this"
Advertise that the user has started a sketched gesture
Map coordinate of the first point
Time the first point was placed - ISO 8601
Send to STP the transcribed speech results, as obtained by a speech recognizer, or typed by the user
List of recognition hypothesis
Time speech started - ISO 8601
Time speech ended- ISO 8601
Set TO to use when a particular COA is selected, or globally, when any COA (of the corresponding affiliation) is selected
Unique id of the TO to set
Optional
coaPoid: stringUnique Id of the COA the TO should be associated with - global default if undefined
Optional
timeout: numberOptional timeout in seconds
Switch the role associated with the current COA
true causes a default COA to be created for the desired role if none exists yet
Optional
timeout: numberOptional timeout in seconds
Update COA definition
updated COA
Request that a symbol be updated by STP. The actual update should only happen when STP responds with SymbolModified
Unique identifier of the symbol to update
Symbol to be updated
Request that a task be updated by STP. The actual update should only happen when STP responds with TaskModified
Unique identifier of the task to update
Alternates of the task to update - normally only one of the alternates will have been modified
Update TO definition
updated TO
Request that a Task Org Relationship be updated by STP. The actual update should only happen when STP responds with TaskOrgRelationshipModified
Unique identifier of the Task Org Relationship to update
Request that a Task Org Unit be updated by STP. The actual update should only happen when STP responds with TaskOrgUnitModified
Unique identifier of the Task Org Unit to update
Task Org Unit to be updated
Generated using TypeDoc
Commands and events to interact with STP