Daemon methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
m (Automatically generated page update)
Line 4: Line 4:
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%boolean</span><span class="literal"> =</span> <span class="literal">%(Daemon):[[AmDaemon (Daemon property)|AmDaemon]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%boolean</span><span class="literal"> =</span> <span class="literal">%(Daemon):[[AmDaemon (Daemon property)|AmDaemon]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%boolean</span><span class="literal"> =</span> <span class="term">daemon</span><span class="literal">:[[AsynchronousFinished (Daemon property)|AsynchronousFinished]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%boolean</span><span class="literal"> =</span> <span class="term">daemon</span><span class="literal">:[[AsynchronousFinished (Daemon property)|AsynchronousFinished]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%sl</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">daemon</span><span class="literal">:[[Continue (Daemon function)|Continue]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">Input=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Object">Output=</span> <span class="term" title="Object">object</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Object">Info=</span> <span class="term" title="Object">object</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">daemon</span><span class="literal">:[[ContinueAsynchronously (Daemon subroutine)|ContinueAsynchronously]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">Input=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">daemon</span><span class="literal">:[[ContinueIndependently (Daemon subroutine)|ContinueIndependently]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Boolean">Input=</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="literal">%(Daemon):[[GetInputObject (Daemon subroutine)|GetInputObject]]</span><span class="literal">(</span> <span class="term" title="Object">object</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="literal">%(Daemon):[[GetInputObject (Daemon subroutine)|GetInputObject]]</span><span class="literal">(</span> <span class="term" title="Object">object</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%boolean</span><span class="literal"> =</span> <span class="term">daemon</span><span class="literal">:[[HaveDaemon (Daemon property)|HaveDaemon]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%boolean</span><span class="literal"> =</span> <span class="term">daemon</span><span class="literal">:[[HaveDaemon (Daemon property)|HaveDaemon]]</span></p>
Line 13: Line 16:
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="literal">%(Daemon):[[ReturnInfoObject (Daemon subroutine)|ReturnInfoObject]]</span><span class="literal">(</span> <span class="term" title="Boolean">outputObj</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="literal">%(Daemon):[[ReturnInfoObject (Daemon subroutine)|ReturnInfoObject]]</span><span class="literal">(</span> <span class="term" title="Boolean">outputObj</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="literal">%(Daemon):[[ReturnObject (Daemon subroutine)|ReturnObject]]</span><span class="literal">(</span> <span class="term" title="Boolean">outputObj</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="literal">%(Daemon):[[ReturnObject (Daemon subroutine)|ReturnObject]]</span><span class="literal">(</span> <span class="term" title="Boolean">outputObj</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%sl</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">daemon</span><span class="literal">:[[Run (Daemon function)|Run]]</span><span class="literal">(</span> <span class="term" title="String">commands</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Boolean">inputObj</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Object">outputObj</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Object">Info=</span> <span class="term" title="Object">object</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="literal">%(Daemon):[[ReturnToMaster (Daemon subroutine)|ReturnToMaster]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">daemon</span><span class="literal">:[[RunAsynchronously (Daemon subroutine)|RunAsynchronously]]</span><span class="literal">(</span> <span class="term" title="String">commands</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Boolean">inputObj</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%sl</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">daemon</span><span class="literal">:[[Run (Daemon function)|Run]]</span><span class="literal">(</span> <span class="term" title="String">commands</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Boolean">Input=</span><span class="squareb">]</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Object">Output=</span><span class="squareb">]</span> <span class="term" title="Object">object</span><span class="squareb">]</span><span class="comma">,</span>         -
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">daemon</span><span class="literal">:[[RunIndependently (Daemon subroutine)|RunIndependently]]</span><span class="literal">(</span> <span class="term" title="String">commands</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Boolean">inputObj</span><span class="squareb">]</span><span class="literal">)</span></p>
                    <span class="squareb">[</span><span class="literal" title="Object">Info=</span> <span class="term" title="Object">object</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">daemon</span><span class="literal">:[[RunAsynchronously (Daemon subroutine)|RunAsynchronously]]</span><span class="literal">(</span> <span class="term" title="String">commands</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Boolean">Input=</span><span class="squareb">]</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">daemon</span><span class="literal">:[[RunIndependently (Daemon subroutine)|RunIndependently]]</span><span class="literal">(</span> <span class="term" title="String">commands</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Boolean">Input=</span><span class="squareb">]</span> <span class="term" title="Boolean">boolean</span><span class="squareb">]</span><span class="literal">)</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%daemonState</span><span class="literal"> =</span> <span class="term">daemon</span><span class="literal">:[[State (Daemon property)|State]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">daemon</span><span class="literal">:[[UserNumber (Daemon property)|UserNumber]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">daemon</span><span class="literal">:[[UserNumber (Daemon property)|UserNumber]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%userStatistics</span><span class="literal"> =</span> <span class="term">daemon</span><span class="literal">:[[UserStatistics (Daemon function)|UserStatistics]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%userStatistics</span><span class="literal"> =</span> <span class="term">daemon</span><span class="literal">:[[UserStatistics (Daemon function)|UserStatistics]]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%sl</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">daemon</span><span class="literal">:[[WaitAsynchronous (Daemon function)|WaitAsynchronous]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Object">object</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Object">Info=</span> <span class="term" title="Object">object</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%sl</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">daemon</span><span class="literal">:[[WaitAsynchronous (Daemon function)|WaitAsynchronous]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Object">Output=</span><span class="squareb">]</span> <span class="term" title="Object">object</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="Object">Info=</span> <span class="term" title="Object">object</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p>

Revision as of 02:08, 13 May 2012

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= boolean], [Output= object], [Info= object])]

daemon:ContinueAsynchronously[( [Input= boolean])]

daemon:ContinueIndependently[( [Input= boolean])]

%(Daemon):GetInputObject( object)

%boolean = daemon:HaveDaemon

%number = daemon:LastCommandErrorCount

%number = %(Daemon):MasterNumber

%daemon = [%(Daemon):]New[( [CopyGlobals= boolean], [Transactional= boolean])]

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

%number = %(Daemon):ParentNumber

%(Daemon):ReturnInfoObject( outputObj)

%(Daemon):ReturnObject( outputObj)

%(Daemon):ReturnToMaster

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

daemon:RunAsynchronously( commands, [[Input=] boolean])

daemon:RunIndependently( commands, [[Input=] boolean])

%daemonState = daemon:State

%number = daemon:UserNumber

%userStatistics = daemon:UserStatistics

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