All Packages  This Package  Class Hierarchy  Class Search  Index

Class bmsi.edx.ActiveTCB
java.lang.Object
   |
   +----bmsi.edx.ActiveTCB

  Summary

public class  ActiveTCB
     extends java.lang.Object
{
          // Fields 2
     public final short actkey;
     public final char acttcb;

          // Methods 26
     public final void atoe(int, int, String);
     public final void copyIn(int, byte[], int, int);
     public final void copyOut(int, byte[], int, int);
     public boolean equals(Object);
     public final String etoa(int, int);
     public final char getAddr(int);
     public final byte getByte(int);
     public final byte[] getBytes(int, int);
     public CCB getCCB();
     public final int getDword(int);
     public final PROG getPROG();
     public final String getText(int);
     public final short getWord(int);
     public final char gtcba(int);
     public final short gtcbw(int);
     public int hashCode();
     public final void post(int, int) throws EDXException;
     public final void ptcbw(int, int);
     public final void putByte(int, int);
     public final void putBytes(int, byte[]);
     public final void putDword(int, int);
     public final void putText(int, String);
     public final void putWord(int, int);
     public final void ready() throws EDXException;
     public final void reset(int) throws EDXException;
     public String toString();
}

An active TCB in an EDX virtual machine. This provides shortcuts for accessing TCB fields and memory in the same partition. It is a seperate class to keep it Thread safe. It is not an inner class because JDK compiler bugs don't allow blank final variables when inner classes are present.


  Cross Reference

Returned By:
EDXServletRequest.getTCB(), EDX.active(), Edxuser.UIMsg.getActiveTCB(), Edxuser.UIMsg.getLoadingTCB(), Edxuser.getActiveTCB()





  Fields

· actkey

Summary  |  Top
   public final short actkey


· acttcb

Summary  |  Top
   public final char acttcb


  Methods

· copyIn

Summary  |  Top

   public final void copyIn(int addr, 
                            byte[] b, 
                            int off, 
                            int len) 

Copy part of a byte array into EDX memory.



· copyOut

Summary  |  Top
   public final void copyOut(int addr, 
                             byte[] b, 
                             int off, 
                             int len) 

Copy EDX memory into a byte array.



· getBytes

Summary  |  Top
   public final byte[] getBytes(int addr, 
                                int len) 

Return a copy in a byte[] of a portion of EDX memory.



· putBytes

Summary  |  Top
   public final void putBytes(int addr, 
                              byte[] b) 

Copy a byte[] into EDX memory.



· getText

Summary  |  Top
   public final String getText(int addr) 

Return an EDX TEXT object as a String. No blanks are stripped. The length of the String is taken from the byte at addr - 1.



· putText

Summary  |  Top
   public final void putText(int addr, 
                             String val) 

Set the value of an EDX TEXT object. The length must be less than the byte at addr - 2. The byte at addr - 1 is set to the length. The remaining bytes up to the max length at addr - 2 are set to EBCDIC blank.



· etoa

Summary  |  Top
   public final String etoa(int addr, 
                            int len) 

Return an EBCDIC character field as a String. No blanks are stripped, you can call trim() if desired.



· atoe

Summary  |  Top
   public final void atoe(int addr, 
                          int len, 
                          String s) 

Set an EBCDIC char field from a String. The String will be truncated or padded with blanks to fit in len EBCDIC bytes.



· getDword

Summary  |  Top
   public final int getDword(int addr) 

Return the DWORD at an EDX address in the active partition.



· putDword

Summary  |  Top
   public final void putDword(int addr, 
                              int val) 

Store a DWORD at an EDX address in the active partition.



· getAddr

Summary  |  Top
   public final char getAddr(int addr) 

Return the unsigned WORD at an EDX address in the active partition.



· putWord

Summary  |  Top
   public final void putWord(int addr, 
                             int val) 

Set the WORD at an EDX address in the active partition of this TCB.



· putByte

Summary  |  Top
   public final void putByte(int addr, 
                             int val) 

Set the BYTE at an EDX address in the active partition of this TCB.



· getWord

Summary  |  Top
   public final short getWord(int addr) 

Return the WORD at an EDX address in the active partition.



· getByte

Summary  |  Top
   public final byte getByte(int addr) 

Return the BYTE at an EDX address in the active partition.



· ready

Summary  |  Top
   public final void ready()  throws EDXException

Wakeup this TCB, which is presumably waiting for this external process.



· post

Summary  |  Top
   public final void post(int ecb, 
                          int code)  throws EDXException


· reset

Summary  |  Top
   public final void reset(int ecb)  throws EDXException


· gtcbw

Summary  |  Top
   public final short gtcbw(int offset) 


· gtcba

Summary  |  Top
   public final char gtcba(int offset) 


· ptcbw

Summary  |  Top
   public final void ptcbw(int offset, 
                           int val) 


· getCCB

Summary  |  Top
   public CCB getCCB() 

Return the EDX CCB currently assigned to this TCB.



· getPROG

Summary  |  Top
   public final PROG getPROG() 

Return the EDX Program this TCB is part of.



· hashCode

Summary  |  Top
   public int hashCode() 
Overrides:
hashCode in class Object


· equals

Summary  |  Top
   public boolean equals(Object obj) 
Overrides:
equals in class Object


· toString

Summary  |  Top
   public String toString() 
Overrides:
toString in class Object


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7