|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ponder2.PonderTalk
public class PonderTalk
A Managed Object that parses and executes PonderTalk. PonderTalk can be
supplied as strings from other PonderTalk statements or as strings received
over RMI. The PonderTalk string is executed and the result is returned as a
string. If an error occurs then a Ponder2Exception or a RemoteException is
thrown.
This managed object can also be used as a stand-alone program to send
PonderTalk to a remote SMC using RMI.
1. Create this managed object in an SMC giving it a RMI name to use. e.g.
MyPonder2
2. Send PonderTalk to the SMC using the Ponder2 JAR file e.g.
java -cp ponder2.jar net.ponder2.PonderTalk MyPonder2 any PonderTalk
statement
Constructor Summary | |
---|---|
PonderTalk(P2Object myP2Object)
Creates a PonderTalk managed object |
Method Summary | |
---|---|
P2Object |
executePonderTalk(java.lang.String aPonderTalkString)
Compiles and executes aPonderTalkString and returns the result. |
static void |
main(java.lang.String[] args)
|
java.lang.String |
test(java.lang.String aString)
tests the RMI interface without having to run a separate SMC |
void |
trace(boolean aBoolean)
turns tracing on if aBoolean is true else turns it off. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PonderTalk(P2Object myP2Object)
myP2Object
-
Ponder2ArgumentException
Method Detail |
---|
public void trace(boolean aBoolean)
aBoolean
- public java.lang.String test(java.lang.String aString) throws Ponder2OperationException
aString
- the PonderTalk to be executed
Ponder2OperationException
public P2Object executePonderTalk(java.lang.String aPonderTalkString) throws Ponder2OperationException
aPonderTalkString
- the PonderTalk to be executed
Ponder2OperationException
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |