The top level root domain of the whole system. Contains main() to start the whole thing off
Operation | Return | Description |
execute: aBlock |
P2Object |
Executes aBlock with no arguments. Answers with the answer from aBlock. Used to force execution of a block within a particular SMC. |
execute: aBlock args: anArray |
P2Object |
Executes aBlock with anArray of arguments. Answers with the result of the last statement executed by the block. Used to force execution of a block within a particular SMC. |
execute: aBlock withHash: aHash |
P2Object |
Executes aBlock with the values of its arguments being taken by name from aHash. Answers the value of the last statement executed by the block. Throws an error if aHash does not satisfy the block's arguments. Used to force execution of a block within a particular SMC. |
exit |
self |
Terminates the Ponder2 SMC with a zero status |
exit: exitStatus |
self |
Terminates the Ponder2 SMC with exitStatus |
getFile: aFileName |
String |
Reads a text file called aFileName into a string and returns it. |
import: aName from: aLocation |
P2Object |
Answers the remote managed object which has aName belonging to an SMC at aLocation. |
load: anObject |
P2Object |
Imports the code necessary for creating an instance of anObject. Answers the factory for creating instances of anObject. |
ping: location |
boolean |
Pings remote SMC to see if it is alive. Answers true if it is. |
print: aString |
String |
Answers aString. Displays aString on the console. |
read: aUrl |
self |
Reads and executes PonderTalk from aUrl. |
read: aUrl withVars: varHash |
self |
Reads and executes PonderTalk from aUrl. The parser is initialized with the variables in the P2Hash varHash |
readString: aPonderTalkString |
P2Object |
Reads and executes PonderTalk from aPonderTalkString. |
readString: aPonderTalkString withVars: varHash |
P2Object |
Reads and executes PonderTalk from aPonderTalkString. The parser is initialised with the variables in the P2Hash varHash |
sleep: secs |
self |
Sleeps for secs seconds |
trace: aBoolean |
boolean |
Answers aBoolean. Set system tracing on or off. |