org.symcomp.scscp
Class CASClient

java.lang.Object
  extended by org.symcomp.scscp.CASClient
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
SCSCPClient

public class CASClient
extends java.lang.Object
implements java.lang.Runnable


Field Summary
protected  java.util.Map<java.lang.String,Computation> computations
           
protected  Computation currentComputation
           
protected  java.lang.String id
           
protected  java.lang.Thread resultThread
           
protected  java.util.Queue waitingComputations
           
 
Constructor Summary
CASClient()
           
 
Method Summary
 java.lang.String compute(OpenMathBase omCommand)
           
 Computation getComputation(java.lang.String token)
           
 java.util.List<Computation> getComputations()
           
 java.lang.Integer getNumberOfComputations()
           
 OpenMathBase getResult(java.lang.String token)
           
 java.lang.Boolean isIdle()
           
 java.lang.Boolean resultAvailable(java.lang.String token)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.String id

computations

protected java.util.Map<java.lang.String,Computation> computations

waitingComputations

protected java.util.Queue waitingComputations

currentComputation

protected Computation currentComputation

resultThread

protected java.lang.Thread resultThread
Constructor Detail

CASClient

public CASClient()
Method Detail

compute

public java.lang.String compute(OpenMathBase omCommand)

getComputation

public Computation getComputation(java.lang.String token)

getComputations

public java.util.List<Computation> getComputations()

getNumberOfComputations

public java.lang.Integer getNumberOfComputations()

getResult

public OpenMathBase getResult(java.lang.String token)

resultAvailable

public java.lang.Boolean resultAvailable(java.lang.String token)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

isIdle

public java.lang.Boolean isIdle()

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 2010. All Rights Reserved.