- java.lang.Object
-
- 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
Fields Modifier and Type Field Description static int
BWDIDX
Index of DLA backward segment pointer.private int
bwdptr
private int
cbase
static int
CBSIDX
Index of DLA character component base address.private int
csize
static int
CSZIDX
Index of DLA character component size.private int
dbase
static int
DBSIDX
Index of DLA double precision component base address.static int
DLADSZ
Size of DLA descriptor array.private int
dsize
static int
DSZIDX
Index of DLA double precision component size.static int
FWDIDX
Index of DLA forward segment pointer.private int
fwdptr
private int
ibase
static int
IBSIDX
Index of DLA integer component base address.private int
isize
static int
ISZIDX
Index of DLA integer component size.
-
Constructor Summary
Constructors Constructor Description DLADescriptor()
No-arguments constructor.DLADescriptor(int[] descrArray)
Construct a DLA descriptor instance from an array of ints.DLADescriptor(DLADescriptor dladsc)
Copy constructor.This constructor creates a deep copy.
-
Method Summary
Modifier and Type Method Description int
getBackwardPointer()
Get DLA segment backward pointer.int
getCharBase()
Get DLA character component base address.int
getCharSize()
Get DLA character component size.The size is a count of DAS character addresses.int
getDoubleBase()
Get DLA double precision component base address.int
getDoubleSize()
Get DLA double precision component size.The size is a count of DAS integer addresses.int
getForwardPointer()
Get DLA segment forward pointer.int
getIntBase()
Get DLA integer component base address.int
getIntSize()
Get DLA integer component size.The size is a count of DAS integer addresses.int[]
toArray()
Extract DLA descriptor contents into an int array.
-
-
-
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
-
bwdptr
private int bwdptr
-
fwdptr
private int fwdptr
-
ibase
private int ibase
-
isize
private int isize
-
dbase
private int dbase
-
dsize
private int dsize
-
cbase
private int cbase
-
csize
private int csize
-
-
Constructor Detail
-
DLADescriptor
public DLADescriptor(int[] descrArray)
Construct a DLA descriptor instance from an array of ints.- Parameters:
descrArray
- int[]
-
DLADescriptor
public DLADescriptor()
No-arguments constructor.
-
DLADescriptor
public DLADescriptor(DLADescriptor dladsc)
Copy constructor.This constructor creates a deep copy.- Parameters:
dladsc
- DLADescriptor
-
-
Method Detail
-
getBackwardPointer
public int getBackwardPointer()
Get DLA segment backward pointer.- Returns:
- int
-
getForwardPointer
public int getForwardPointer()
Get DLA segment forward pointer.- Returns:
- int
-
getIntBase
public int getIntBase()
Get DLA integer component base address.- Returns:
- int
-
getIntSize
public int getIntSize()
Get DLA integer component size.The size is a count of DAS integer addresses.- Returns:
- int
-
getDoubleBase
public int getDoubleBase()
Get DLA double precision component base address.- Returns:
- int
-
getDoubleSize
public int getDoubleSize()
Get DLA double precision component size.The size is a count of DAS integer addresses.- Returns:
- int
-
getCharBase
public int getCharBase()
Get DLA character component base address.- Returns:
- int
-
getCharSize
public int getCharSize()
Get DLA character component size.The size is a count of DAS character addresses.- Returns:
- int
-
toArray
public int[] toArray()
Extract DLA descriptor contents into an int array.- Returns:
- int[]
-
-