com.isti.shape
Class Snippet

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--com.isti.shape.Snippet
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.lang.Comparable, java.util.List, java.io.Serializable

public class Snippet
extends java.util.Vector
implements java.lang.Cloneable, java.lang.Comparable

vector of strings 3 vectors, this extends Vector, plus 2 string vectors. The Snippet has a vector of child snippets It has a vector of strings to that are the result of a parsed snippet. It has a vector of strings that are the XML file items to override the parse snippet lines. A Snippet with both string vectors empty creates a default blockette. where each item in vector is a line from a snippet/resp file.

See Also:
Serialized Form

Field Summary
(package private) static int level
           
(package private) static int nextID
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Snippet()
           
Snippet(int type)
           
Snippet(int type, int id)
           
 
Method Summary
 boolean add(Snippet snip)
           
 boolean appendLine(RespLineItem io)
           
 void appendLines(java.util.Vector vect)
           
 boolean appendXML(RespLineItem io)
          When I try to add an InitObject to my own XML vector, I need to make sure that I also try to add it to my children, in case it really applies to one of them.
 void appendXMLLines(java.util.Vector vect)
          takes an array of lines from HAT file with info on B__F__ initialization replacement, stores them in array.
 java.lang.Object clone()
           
 void combineB50(Snippet osnip)
           
 void combineB52F16()
           
 int compareTo(java.lang.Object obj)
           
 int getBlocketteNum()
           
 java.util.Vector getChildren()
          get immediate children
 IstiEpoch getEndTime()
           
 int getFirstStage()
           
 int getLastStage()
           
 java.util.Vector getRESPinfo()
          returns vector holding strings read from RESP file
 int getStage()
           
 IstiEpoch getStartTime()
           
 java.util.Vector getXMLinfo()
          returns vector holding InitObjects read from HAT file for changing this snippet
static void main(java.lang.String[] args)
           
 void printAllSnippets()
           
 void printDictionaryLookups()
           
 void setEndTime(IstiEpoch endTime)
           
 void setFirstStage(int firstStage)
           
 void setLastStage(int lastStage)
           
 void setStartTime(IstiEpoch startTime)
           
 java.lang.String shortString()
           
 void testINIT()
           
 java.lang.String toString()
           
 java.lang.String toStringSelf()
           
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

level

static int level

nextID

static int nextID
Constructor Detail

Snippet

public Snippet()

Snippet

public Snippet(int type,
               int id)

Snippet

public Snippet(int type)
Method Detail

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

testINIT

public void testINIT()

getRESPinfo

public java.util.Vector getRESPinfo()
returns vector holding strings read from RESP file
Returns:
 

getXMLinfo

public java.util.Vector getXMLinfo()
returns vector holding InitObjects read from HAT file for changing this snippet
Returns:
 

add

public boolean add(Snippet snip)
            throws SnippetLinkException

appendXML

public boolean appendXML(RespLineItem io)
When I try to add an InitObject to my own XML vector, I need to make sure that I also try to add it to my children, in case it really applies to one of them.
Parameters:
io -  
Returns:
 

appendXMLLines

public void appendXMLLines(java.util.Vector vect)
                    throws java.text.ParseException
takes an array of lines from HAT file with info on B__F__ initialization replacement, stores them in array.
Parameters:
vect -  

appendLine

public boolean appendLine(RespLineItem io)

appendLines

public void appendLines(java.util.Vector vect)

getBlocketteNum

public int getBlocketteNum()

getStage

public int getStage()

clone

public java.lang.Object clone()
Overrides:
clone in class java.util.Vector

getChildren

public java.util.Vector getChildren()
get immediate children
Returns:
 

printAllSnippets

public void printAllSnippets()

shortString

public java.lang.String shortString()

printDictionaryLookups

public void printDictionaryLookups()

toString

public java.lang.String toString()
Overrides:
toString in class java.util.Vector

toStringSelf

public java.lang.String toStringSelf()

combineB52F16

public void combineB52F16()

combineB50

public void combineB50(Snippet osnip)

main

public static void main(java.lang.String[] args)

getFirstStage

public int getFirstStage()

setFirstStage

public void setFirstStage(int firstStage)

getLastStage

public int getLastStage()

setLastStage

public void setLastStage(int lastStage)

setStartTime

public void setStartTime(IstiEpoch startTime)

getStartTime

public IstiEpoch getStartTime()

getEndTime

public IstiEpoch getEndTime()

setEndTime

public void setEndTime(IstiEpoch endTime)