org.jclarion.clarion.runtime.ref
Class RefVariable<T>

java.lang.Object
  extended by org.jclarion.clarion.ClarionMemoryModel
      extended by org.jclarion.clarion.runtime.ref.RefVariable<T>
All Implemented Interfaces:
Threaded

public class RefVariable<T>
extends ClarionMemoryModel


Nested Class Summary
static class RefVariable.State
           
 
Field Summary
protected  AbstractStateGetter<RefVariable.State> state
           
 
Constructor Summary
RefVariable()
           
RefVariable(RefVariable<T> variable, java.lang.Thread t)
           
RefVariable(T variable)
           
 
Method Summary
 void deserialize(java.io.InputStream is)
          Read object from memory as clarion would represent object in memory
 T get()
           
 java.lang.Object getLockedObject(java.lang.Thread t)
           
 void initThread()
           
 void serialize(java.io.OutputStream os)
          Write java object to memory as clarion would represent object in memory
 void set(T variable)
           
 RefVariable<T> setThread()
           
 
Methods inherited from class org.jclarion.clarion.ClarionMemoryModel
addChangeListener, addChangeListener, castTo, getListenerCount, isAnyoneInterestedInChange, isThreaded, lock, notifyChange, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state

protected AbstractStateGetter<RefVariable.State> state
Constructor Detail

RefVariable

public RefVariable()

RefVariable

public RefVariable(T variable)

RefVariable

public RefVariable(RefVariable<T> variable,
                   java.lang.Thread t)
Method Detail

initThread

public void initThread()
Specified by:
initThread in interface Threaded
Overrides:
initThread in class ClarionMemoryModel

setThread

public RefVariable<T> setThread()

get

public T get()

set

public void set(T variable)

deserialize

public void deserialize(java.io.InputStream is)
                 throws java.io.IOException
Description copied from class: ClarionMemoryModel
Read object from memory as clarion would represent object in memory

Specified by:
deserialize in class ClarionMemoryModel
Throws:
java.io.IOException

serialize

public void serialize(java.io.OutputStream os)
               throws java.io.IOException
Description copied from class: ClarionMemoryModel
Write java object to memory as clarion would represent object in memory

Specified by:
serialize in class ClarionMemoryModel
Throws:
java.io.IOException

getLockedObject

public java.lang.Object getLockedObject(java.lang.Thread t)


Copyright © 2010. All Rights Reserved.