Daemon methods syntax

From m204wiki
Jump to navigation Jump to search

The syntax for each of the Daemon class methods is shown below.

Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of Daemon methods.

%boolean = %(Daemon):AmDaemon

%boolean = daemon:AsynchronousFinished

[%sl =] daemon:Continue[( [Input= object], [Output= object], [Info= object])] Throws DaemonLost, IncorrectDaemonState

daemon:ContinueAsynchronously[( [Input= object])] Throws DaemonLost, IncorrectDaemonState

daemon:ContinueIndependently[( [Input= object])] Throws DaemonLost, IncorrectDaemonState

%(Daemon):GetInputObject( object)

%boolean = daemon:HaveDaemon

%number = daemon:LastCommandErrorCount

%number = %(Daemon):MasterNumber

%daemon = [%(Daemon):]New[( [CopyGlobals= boolean], [Transactional= boolean], - [OpenAll= boolean])] Throws MaxDaemExceeded, NoFreeDaemons, DaemonLost

daemon:Open( string, [Default= boolean]) Throws DaemonLost, IncorrectDaemonState

%number = %(Daemon):ParentNumber

%(Daemon):ReturnInfoObject( outputObj)

%(Daemon):ReturnObject( outputObj)

%(Daemon):ReturnToMaster

[%sl =] daemon:Run( commands, [[Input=] object], [[Output=] object], - [Info= object]) Throws DaemonLost, IncorrectDaemonState

daemon:RunAsynchronously( commands, [[Input=] object]) Throws DaemonLost, IncorrectDaemonState

daemon:RunIndependently( commands, [[Input=] object]) Throws DaemonLost, IncorrectDaemonState

%daemonState = daemon:State

%number = daemon:UserNumber

%userStatistics = daemon:UserStatistics Throws DaemonLost

[%sl =] daemon:WaitAsynchronous[( [[Output=] object], [Info= object])] Throws DaemonLost, IncorrectDaemonState