jcama
Class Location

java.lang.Object
  extended by jcama.Location

public final class Location
extends java.lang.Object

Implements communication with the CAMA location middleware


Field Summary
protected  int ctxNum
           
protected  java.io.InputStream inStream
           
protected  java.net.Socket lsocket
           
protected  java.io.OutputStream outStream
           
 
Constructor Summary
Location(java.lang.String locHost, int port)
          Connects to a CAMA server
 
Method Summary
 void Disengage()
          Disengages CAMA location
 Scope Engage()
          Engages CAMA location and recieves lambda scope handle
static Scope newInstance(Scope s)
          Creates a new instance of a scope handle that can be used in another thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inStream

protected java.io.InputStream inStream

outStream

protected java.io.OutputStream outStream

lsocket

protected java.net.Socket lsocket

ctxNum

protected int ctxNum
Constructor Detail

Location

public Location(java.lang.String locHost,
                int port)
Connects to a CAMA server

Method Detail

Engage

public Scope Engage()
             throws CamaException
Engages CAMA location and recieves lambda scope handle

Returns:
lambda scope
Throws:
CamaException

newInstance

public static Scope newInstance(Scope s)
                         throws CamaException
Creates a new instance of a scope handle that can be used in another thread.

Returns:
new scope instance
Throws:
CamaException

Disengage

public void Disengage()
               throws CamaException
Disengages CAMA location

Throws:
CamaException