Package edu.vt.rt.hyflow.core.tm.dtl2

Examples of edu.vt.rt.hyflow.core.tm.dtl2.Context


    nextAvaliable = 0;
  }

  private void fillArray( int offset){
    for( int i=offset ; i < readSet.length ; ++i){
      readSet[i] = new ReadObjectAccess();
    }
  }
View Full Code Here


    nextAvaliable = 0;
  }

  private void fillArray( int offset){
    for( int i=offset ; i < readSet.length ; ++i){
      readSet[i] = new ReadObjectAccess();
    }
  }
View Full Code Here

    nextAvaliable = 0;
  }

  private void fillArray( int offset){
    for( int i=offset ; i < readSet.length ; ++i){
      readSet[i] = new ReadObjectAccess();
    }
  }
View Full Code Here

 
  public void beforeReadAccess(Object obj, long field) {
    if(obj instanceof AbstractDistinguishable)
      Logger.debug("Try access " + ((AbstractDistinguishable)obj).getId());
    ReadObjectAccess next = readSet.getNext();
    next.init(obj);

    LockTable.checkLock(obj, localClock, true);
  }
View Full Code Here

 
  public void beforeReadAccess(Object obj, long field) {
    if(obj instanceof AbstractDistinguishable)
      Logger.debug("Try access " + ObjectsRegistery.getKey(((AbstractDistinguishable)obj).getId()));
    ReadObjectAccess next = readSet.getNext();
    next.init(obj);

    LockTable.checkLock(obj, localClock, true);
  }
View Full Code Here

 
  public void beforeReadAccess(Object obj, long field) {
    if(obj instanceof AbstractDistinguishable)
      Logger.debug("Try access " + ObjectsRegistery.getKey(((AbstractDistinguishable)obj).getId()));
    ReadObjectAccess next = readSet.getNext();
    next.init(obj);

    // Sachin -- disable for testing
    LockTable.checkLock(obj, localClock, true);
  }
View Full Code Here

    LockTable.checkLock(obj, localClock, true);
  }
 
  public Object onReadAccess( Object obj, Object value, long field){
    Logger.debug("On read access " + obj);
    WriteObjectAccess writeAccess = onReadAccess0(obj, field);
    if( writeAccess == null){
      Logger.debug("On read access 2 " + writeAccess);
      return value;
    }
    Logger.debug("read new value " + obj);
    Object val = writeAccess.getValue(field);
    return val==null ? value : val;
  }
View Full Code Here

    Object val = writeAccess.getValue(field);
    return val==null ? value : val;
  }
   
  public boolean onReadAccess(Object obj, boolean value, long field) {
    WriteObjectAccess writeAccess = onReadAccess0(obj, field);
    if( writeAccess == null)
      return value;
   
    Boolean val = (Boolean)writeAccess.getValue(field);
    return val==null ? value : val;   
  }
View Full Code Here

    Boolean val = (Boolean)writeAccess.getValue(field);
    return val==null ? value : val;   
  }
 
  public byte onReadAccess(Object obj, byte value, long field) {
    WriteObjectAccess writeAccess = onReadAccess0(obj, field);
    if( writeAccess == null)
      return value;
   
    Byte val = (Byte)writeAccess.getValue(field);
    return val==null ? value : val;
  }
View Full Code Here

    Byte val = (Byte)writeAccess.getValue(field);
    return val==null ? value : val;
  }
 
  public char onReadAccess(Object obj, char value, long field) {
    WriteObjectAccess writeAccess = onReadAccess0(obj, field);
    if( writeAccess == null)
      return value;
   
    Character val = (Character)writeAccess.getValue(field);
    return val==null ? value : val;
  }
View Full Code Here

TOP

Related Classes of edu.vt.rt.hyflow.core.tm.dtl2.Context

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.