br.ufsc.das.client
Class DepSpaceAccessor

java.lang.Object
  extended by br.ufsc.das.client.DepSpaceAccessor
All Implemented Interfaces:
DepSpace

public class DepSpaceAccessor
extends java.lang.Object
implements DepSpace

Class used to access the logical tuple spaces


Constructor Summary
DepSpaceAccessor(DepSpaceAdmin creator, java.lang.String name)
          Creates a new instance of DepSpaceAccessor
 
Method Summary
 DepTuple cas(DepTuple template, DepTuple tuple)
          Execute a CAS operation
 DepTuple cas(DepTuple template, DepTuple tuple, Context ctx)
          Execute a CAS operation and supplies the context
 void finalize()
          Finalize this accessor ant delete the logical tuple space related with this accessor
 DepSpaceClient getBottonLayer()
          Gets the botton layer
 java.lang.String getTSName()
          Returns the logical tuple space related with this accessor
 DepTuple in(DepTuple template)
          Execute a IN operation
 DepTuple in(DepTuple template, Context ctx)
          Execute a IN operation and supplies the context
 DepTuple inp(DepTuple template)
          Execute a INP operation
 DepTuple inp(DepTuple template, Context ctx)
          Execute a INP operation and supplies the context
 void out(DepTuple tuple)
          Execute a OUT operation
 void out(DepTuple tuple, Context ctx)
          Execute a OUT operation and supplies the context
 DepTuple rd(DepTuple template)
          Execute a RD operation
 DepTuple rd(DepTuple template, Context ctx)
          Execute a RD operation and supplies the context
 DepTuple rdp(DepTuple template)
          Execute a RDP operation
 DepTuple rdp(DepTuple template, Context ctx)
          Execute a RDP operation and supplies the context
 void setBottonLayer(DepSpaceClient bl)
          Sets the botton layer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DepSpaceAccessor

public DepSpaceAccessor(DepSpaceAdmin creator,
                        java.lang.String name)
Creates a new instance of DepSpaceAccessor

Method Detail

setBottonLayer

public void setBottonLayer(DepSpaceClient bl)
Sets the botton layer


getBottonLayer

public DepSpaceClient getBottonLayer()
Gets the botton layer


getTSName

public java.lang.String getTSName()
Returns the logical tuple space related with this accessor


finalize

public void finalize()
              throws DepSpaceException
Finalize this accessor ant delete the logical tuple space related with this accessor

Overrides:
finalize in class java.lang.Object
Throws:
DepSpaceException

out

public void out(DepTuple tuple)
         throws DepSpaceException
Execute a OUT operation

Throws:
DepSpaceException

rd

public DepTuple rd(DepTuple template)
            throws DepSpaceException
Execute a RD operation

Throws:
DepSpaceException

in

public DepTuple in(DepTuple template)
            throws DepSpaceException
Execute a IN operation

Throws:
DepSpaceException

rdp

public DepTuple rdp(DepTuple template)
             throws DepSpaceException
Execute a RDP operation

Throws:
DepSpaceException

inp

public DepTuple inp(DepTuple template)
             throws DepSpaceException
Execute a INP operation

Throws:
DepSpaceException

cas

public DepTuple cas(DepTuple template,
                    DepTuple tuple)
             throws DepSpaceException
Execute a CAS operation

Throws:
DepSpaceException

out

public void out(DepTuple tuple,
                Context ctx)
         throws DepSpaceException
Execute a OUT operation and supplies the context

Specified by:
out in interface DepSpace
Throws:
DepSpaceException

rd

public DepTuple rd(DepTuple template,
                   Context ctx)
            throws DepSpaceException
Execute a RD operation and supplies the context

Specified by:
rd in interface DepSpace
Throws:
DepSpaceException

in

public DepTuple in(DepTuple template,
                   Context ctx)
            throws DepSpaceException
Execute a IN operation and supplies the context

Specified by:
in in interface DepSpace
Throws:
DepSpaceException

rdp

public DepTuple rdp(DepTuple template,
                    Context ctx)
             throws DepSpaceException
Execute a RDP operation and supplies the context

Specified by:
rdp in interface DepSpace
Throws:
DepSpaceException

inp

public DepTuple inp(DepTuple template,
                    Context ctx)
             throws DepSpaceException
Execute a INP operation and supplies the context

Specified by:
inp in interface DepSpace
Throws:
DepSpaceException

cas

public DepTuple cas(DepTuple template,
                    DepTuple tuple,
                    Context ctx)
             throws DepSpaceException
Execute a CAS operation and supplies the context

Specified by:
cas in interface DepSpace
Throws:
DepSpaceException