hep.lcd.vertexing.zvtop
Class ZvVertexList

java.lang.Object
  |
  +--hep.lcd.vertexing.zvtop.ZvVertexList

public class ZvVertexList
extends Object
implements VertexListInt, Serializable

ZvVertexList -- ZvTop vertex list

Class provides a list of ZvVertex objects.

Version:
$Id: ZvVertexList.java,v 1.3 2001/06/13 23:51:16 walkowia Exp $
Author:
W.Walkowiak, 09/15/00
See Also:
Serialized Form
Source Code:
ZvVertexList.java

Constructor Summary
ZvVertexList()
           
ZvVertexList(Enumeration e)
          This constructor takes an enumeration of ZvVertex!
ZvVertexList(Vector v)
           
ZvVertexList(ZvVertexList vl)
          This constructor takes a ZvVertexList
 
Method Summary
 void addVertex(ZvVertex vertex)
          add a single vertex
 void addVertexEnumeration(Enumeration e)
          Add an enumeration of ZvVertex
 void addVertexList(ZvVertexList vl)
          Add a ZvVertexList
 boolean contains(ZvVertex vertex)
           
 ZvVertex firstVertex()
           
 ZvVertexList getCopy()
          get a deep copy of vertex list
 double[] getMeanPosition()
          get the mean position of all vertices in list
 int getNVertices()
          get number of vertices in this list
 FitStatusInt getStatus()
          get the global status of the last vertexing action
 ZvTopVertexer getVertexer()
          get the vertexer used; gives handle to different (track) lists
 Enumeration getVertices()
          returns an enumeration of ZvVertex
 int indexOf(ZvVertex vertex)
           
 void insertVertexAt(ZvVertex vertex, int index)
           
 boolean isEmpty()
          Is the list empty?
 int lastIndexOf(ZvVertex vertex)
           
 ZvVertex lastVertex()
           
 void removeAllVertices()
           
 void removeVertex(ZvVertex vertex)
           
 void removeVertexAt(int index)
           
 void setVertexAt(ZvVertex vertex, int index)
           
 void setVertexer(ZvTopVertexer vertexer)
          set the vertexer used
 ZvVertex vertexAt(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZvVertexList

public ZvVertexList()

ZvVertexList

public ZvVertexList(Vector v)

ZvVertexList

public ZvVertexList(Enumeration e)
This constructor takes an enumeration of ZvVertex!

ZvVertexList

public ZvVertexList(ZvVertexList vl)
This constructor takes a ZvVertexList
Method Detail

getNVertices

public int getNVertices()
get number of vertices in this list
Specified by:
getNVertices in interface VertexList

getVertices

public Enumeration getVertices()
returns an enumeration of ZvVertex
Specified by:
getVertices in interface VertexList

addVertex

public void addVertex(ZvVertex vertex)
add a single vertex

addVertexEnumeration

public void addVertexEnumeration(Enumeration e)
Add an enumeration of ZvVertex

addVertexList

public void addVertexList(ZvVertexList vl)
Add a ZvVertexList

vertexAt

public ZvVertex vertexAt(int index)

firstVertex

public ZvVertex firstVertex()

lastVertex

public ZvVertex lastVertex()

insertVertexAt

public void insertVertexAt(ZvVertex vertex,
                           int index)

setVertexAt

public void setVertexAt(ZvVertex vertex,
                        int index)

removeAllVertices

public void removeAllVertices()

removeVertex

public void removeVertex(ZvVertex vertex)

removeVertexAt

public void removeVertexAt(int index)

contains

public boolean contains(ZvVertex vertex)

indexOf

public int indexOf(ZvVertex vertex)

lastIndexOf

public int lastIndexOf(ZvVertex vertex)

isEmpty

public boolean isEmpty()
Description copied from interface: VertexListInt
Is the list empty?
Specified by:
isEmpty in interface VertexListInt

getCopy

public ZvVertexList getCopy()
get a deep copy of vertex list

getMeanPosition

public double[] getMeanPosition()
get the mean position of all vertices in list

setVertexer

public void setVertexer(ZvTopVertexer vertexer)
set the vertexer used

getVertexer

public ZvTopVertexer getVertexer()
get the vertexer used; gives handle to different (track) lists

getStatus

public FitStatusInt getStatus()
get the global status of the last vertexing action


The LCD Group