$customHeader
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Current »

Classifies an object using the installed taxonomy in order to derive an "Object Key".

 

Syntax

var objKey = NEXUS.classify(obj);

Parameters

ParameterMandatoryTypeNotesNEXUS Version
obj(tick)ObjectThe object to classify, preferably something the installed classification taxonomy will understand!

v0.1

Return value

ValueTypeNotesNEXUS Version
<object key>String

If the object can be classified, it's "object key" will be returned as a string.

v0.1
<error>ErrorIs it a bird? Is it a plane? No, it's an Incoming. Laser. Satellite. Strike.v0.1 and above

Example

// assuming we have at least one droid
var myDroid = enumDroid(me)[0];
var objKey = NEXUS.classify(myDroid);

See also

A Classify Subroutine must be installed before you can use this function. 

Contents

Assimilate:

 

API Browser

Observe:

  • NEXUS()The API namespace for NEXUS, that doubles up as a function for triggering tasks.
    • .infiltrate()Infiltrates core systems so that NEXUS can absorb them.
    • .suffix()Determines the appropriate event key suffix based on the passed in object.
    • .fnDefines helper functions available to all NEXUS subroutines (and external scripts).
    • .actions
    • .classify()Classifies an object using the installed taxonomy in order to derive an "Object Key".
    • .defaultStores various defaults for NEXUS subroutines.

 

  • No labels