JNISpice
version 2.0.0

spice.basic
Class DLADescriptor

java.lang.Object
  extended by spice.basic.DLADescriptor

public class DLADescriptor
extends java.lang.Object

Class DLADescriptor represents DLA segment descriptors and declares DLA constants.

Within a DLA file, each DLA segment descriptor occupies a contiguous range of DAS integer addresses. The DLA segment components it describes are, respectively, contiguous ranges of DAS integer, double precision, and character addresses. Any of the components may be empty.

The base addresses stored in the descriptor are predecessors of the first DAS addresses of the respective components. DAS addresses are 1-based for all SPICE language versions.

Version 1.0.0 14-NOV-2016 (NJB)



Field Summary
static int BWDIDX
          Index of DLA backward segment pointer.
static int CBSIDX
          Index of DLA character component base address.
static int CSZIDX
          Index of DLA character component size.
static int DBSIDX
          Index of DLA double precision component base address.
static int DLADSZ
          Size of DLA descriptor array.
static int DSZIDX
          Index of DLA double precision component size.
static int FWDIDX
          Index of DLA forward segment pointer.
static int IBSIDX
          Index of DLA integer component base address.
static int ISZIDX
          Index of DLA integer component size.
 
Constructor Summary
DLADescriptor()
          No-arguments constructor.
DLADescriptor(DLADescriptor dladsc)
          Copy constructor.
DLADescriptor(int[] descrArray)
          Construct a DLA descriptor instance from an array of ints.
 
Method Summary
 int getBackwardPointer()
          Get DLA segment backward pointer.
 int getCharBase()
          Get DLA character component base address.
 int getCharSize()
          Get DLA character component size.
 int getDoubleBase()
          Get DLA double precision component base address.
 int getDoubleSize()
          Get DLA double precision component size.
 int getForwardPointer()
          Get DLA segment forward pointer.
 int getIntBase()
          Get DLA integer component base address.
 int getIntSize()
          Get DLA integer component size.
 int[] toArray()
          Extract DLA descriptor contents into an int array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BWDIDX

public static final int BWDIDX
Index of DLA backward segment pointer.

See Also:
Constant Field Values

FWDIDX

public static final int FWDIDX
Index of DLA forward segment pointer.

See Also:
Constant Field Values

IBSIDX

public static final int IBSIDX
Index of DLA integer component base address.

See Also:
Constant Field Values

ISZIDX

public static final int ISZIDX
Index of DLA integer component size.

See Also:
Constant Field Values

DBSIDX

public static final int DBSIDX
Index of DLA double precision component base address.

See Also:
Constant Field Values

DSZIDX

public static final int DSZIDX
Index of DLA double precision component size.

See Also:
Constant Field Values

CBSIDX

public static final int CBSIDX
Index of DLA character component base address.

See Also:
Constant Field Values

CSZIDX

public static final int CSZIDX
Index of DLA character component size.

See Also:
Constant Field Values

DLADSZ

public static final int DLADSZ
Size of DLA descriptor array.

See Also:
Constant Field Values
Constructor Detail

DLADescriptor

public DLADescriptor(int[] descrArray)
Construct a DLA descriptor instance from an array of ints.


DLADescriptor

public DLADescriptor()
No-arguments constructor.


DLADescriptor

public DLADescriptor(DLADescriptor dladsc)
Copy constructor. This constructor creates a deep copy.

Method Detail

getBackwardPointer

public int getBackwardPointer()
Get DLA segment backward pointer.


getForwardPointer

public int getForwardPointer()
Get DLA segment forward pointer.


getIntBase

public int getIntBase()
Get DLA integer component base address.


getIntSize

public int getIntSize()
Get DLA integer component size. The size is a count of DAS integer addresses.


getDoubleBase

public int getDoubleBase()
Get DLA double precision component base address.


getDoubleSize

public int getDoubleSize()
Get DLA double precision component size. The size is a count of DAS integer addresses.


getCharBase

public int getCharBase()
Get DLA character component base address.


getCharSize

public int getCharSize()
Get DLA character component size. The size is a count of DAS character addresses.


toArray

public int[] toArray()
Extract DLA descriptor contents into an int array.


JNISpice
version 2.0.0

JNISpice Alpha Test Version 2.0.0 28-JAN-2017 (NJB)