|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.symcomp.scscp.ProcedureCall
public class ProcedureCall
A class to encapsulate an SCSCP Procedure Call, used by both servers and clients.
| Nested Class Summary | |
|---|---|
static class |
ProcedureCall.OPTION_RETURN
|
| Field Summary | |
|---|---|
protected OpenMathBase[] |
arguments
|
protected CookieStore |
cookies
|
protected java.util.Map<java.lang.String,OpenMathBase[]> |
options
|
protected org.symcomp.openmath.OMSymbol |
serviceName
|
| Constructor Summary | |
|---|---|
ProcedureCall(CookieStore cookies,
OpenMathBase msgin)
Constructor, intended to be used by servers. |
|
ProcedureCall(java.lang.String callID,
org.symcomp.openmath.OMSymbol serviceName,
OpenMathBase[] arguments)
Constructor, intended to be used by clients. |
|
ProcedureCall(java.lang.String callID,
OpenMathBase argument)
Constructor, intended to be used by clients. |
|
| Method Summary | |
|---|---|
void |
ensureReturnOption(ProcedureCall.OPTION_RETURN deflt)
|
OpenMathBase |
getArgument(int i)
Get an argument of the procedure call |
OpenMathBase[] |
getCallID()
|
java.lang.String |
getCallIDStr()
|
CookieStore |
getCookieStore()
|
org.symcomp.openmath.OMObject |
getOMObject()
Convert to OpenMath Object |
OpenMathBase[] |
getOption(org.symcomp.openmath.OMSymbol k)
|
OpenMathBase |
getPayload()
Get the payload of the procedure call |
ProcedureCall.OPTION_RETURN |
getReturn()
|
org.symcomp.openmath.OMSymbol |
getServiceName()
|
boolean |
hasReturn(ProcedureCall.OPTION_RETURN which)
|
void |
removeOption(org.symcomp.openmath.OMSymbol k)
|
void |
setCookieStore(CookieStore s)
|
void |
setOption(org.symcomp.openmath.OMSymbol k,
OpenMathBase v)
|
void |
setReturn(ProcedureCall.OPTION_RETURN which)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CookieStore cookies
protected java.util.Map<java.lang.String,OpenMathBase[]> options
protected org.symcomp.openmath.OMSymbol serviceName
protected OpenMathBase[] arguments
| Constructor Detail |
|---|
public ProcedureCall(java.lang.String callID,
org.symcomp.openmath.OMSymbol serviceName,
OpenMathBase[] arguments)
callID - a String with the callIDserviceName - an OMSymbol carrying the name of the service to be queriedarguments - a list of OpenMath encoded arguments.
public ProcedureCall(java.lang.String callID,
OpenMathBase argument)
throws OpenMathException
callID - a String with the callIDargument - an OpenMath encoded object representing the call.
This argument may either be an OMObject whose first argument is an OMApply a,
or an OMApply a. The head symbol of a will be the serviceName of the resulting
procedure call, and the arguments of a will be the arguments of the call.
OpenMathException
public ProcedureCall(CookieStore cookies,
OpenMathBase msgin)
throws OpenMathException
cookies - the cookie store that is being passed around by the SCSCP servermsgin - an OpenMath encoded message containing the procedure call.
OpenMathException| Method Detail |
|---|
public void setOption(org.symcomp.openmath.OMSymbol k,
OpenMathBase v)
public OpenMathBase[] getOption(org.symcomp.openmath.OMSymbol k)
public void removeOption(org.symcomp.openmath.OMSymbol k)
public OpenMathBase[] getCallID()
public java.lang.String getCallIDStr()
public org.symcomp.openmath.OMSymbol getServiceName()
public CookieStore getCookieStore()
public void setCookieStore(CookieStore s)
public void setReturn(ProcedureCall.OPTION_RETURN which)
public boolean hasReturn(ProcedureCall.OPTION_RETURN which)
public ProcedureCall.OPTION_RETURN getReturn()
public void ensureReturnOption(ProcedureCall.OPTION_RETURN deflt)
public OpenMathBase getArgument(int i)
i - the index of the argument, 0 <=i < n
public org.symcomp.openmath.OMObject getOMObject()
public OpenMathBase getPayload()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||