All Packages Class Hierarchy This Package Previous Next Index
Class JObserve.ListBlock
java.lang.Object
|
+----JObserve.ListBlock
- public final class ListBlock
- extends Object
List array class
This class manages linked lists of sources, observations etc.
*
In the current scheme ,the linkage is done in the Linkage class
which has all private members. LabeledLink is derived from Linkage
with an added public label. The list is traversed using the Linkage
portion of the LabeledList.
A data pointer for the associated data is obtained by casting to/from the
relevant subclass.
- See Also:
- LabeledLink
-
CalType
-
-
editable
- Is this list user edit-able?
-
HeadLabel
- String for head of list Id
-
ListColumns
-
-
ListCount
- Symbolic values for list related numbers.
-
ListRows
-
-
myList
- Linkage into linked list
Called "Queue" in the old c version.
-
myType
- Block type
-
ScanType
- ListBlock types
-
TitleRows
-
-
version
- Version string from first line of file
-
ListBlock()
- Default constructor
Initialized an empty list
-
ListBlock(int)
- Constructor from type
Initialized an empty list
-
CountItems()
- Count items in list (not including head/tail Link)
-
LocateItem(int)
- Find an entry with a given index (0-rel)
-
LocateItem(String)
- Find an entry with a specified label
Comparison is case insensitive.
ListCount
public static final int ListCount
- Symbolic values for list related numbers.
ListCount, ListColumns, ListRows, TitleRows
ListColumns
public static final int ListColumns
ListRows
public static final int ListRows
TitleRows
public static final int TitleRows
HeadLabel
public static final String HeadLabel
- String for head of list Id
myList
public LabeledLink myList
- Linkage into linked list
Called "Queue" in the old c version.
ScanType
public static final int ScanType
- ListBlock types
CalType
public static final int CalType
myType
public int myType
- Block type
editable
public boolean editable
- Is this list user edit-able?
version
public String version
- Version string from first line of file
ListBlock
public ListBlock()
- Default constructor
Initialized an empty list
ListBlock
public ListBlock(int type)
- Constructor from type
Initialized an empty list
LocateItem
public LabeledLink LocateItem(String name)
- Find an entry with a specified label
Comparison is case insensitive.
- Parameters:
-
String
- the label of the desired item
- Returns:
- 0f the desired item, null if not found
LocateItem
public LabeledLink LocateItem(int index)
- Find an entry with a given index (0-rel)
- Parameters:
-
int
- index of the desired item
- Returns:
-
LabeledLink
k 0f the desired item, null if not found
CountItems
public int CountItems()
- Count items in list (not including head/tail Link)
- Returns:
-
int
the number is actual entries in list
All Packages Class Hierarchy This Package Previous Next Index