org.jlab.hipo.data
Class HipoGroup
- java.lang.Object
-
- org.jlab.hipo.data.HipoGroup
-
public class HipoGroup extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description HipoGroup(java.util.Map<java.lang.Integer,HipoNode> nodes)HipoGroup(java.util.Map<java.lang.Integer,HipoNode> nodes, Schema schema)HipoGroup(Schema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddNode(HipoNode node)add node to the group.intgetMaxSize()HipoNodegetNode(java.lang.String name)returns a node with the name taken from the schema.java.util.List<HipoNode>getNodes()returns a list of nodes.SchemagetSchema()voidshow()
-
-
-
Constructor Detail
-
HipoGroup
public HipoGroup(Schema schema)
-
HipoGroup
public HipoGroup(java.util.Map<java.lang.Integer,HipoNode> nodes)
-
-
Method Detail
-
addNode
public void addNode(HipoNode node)
add node to the group. The schema is checked to validate the nodes added- Parameters:
node- node to be added to the group
-
getNode
public HipoNode getNode(java.lang.String name)
returns a node with the name taken from the schema.- Parameters:
name- name of the node according to the schema- Returns:
- HipoNode
-
getNodes
public java.util.List<HipoNode> getNodes()
returns a list of nodes. Used for writing into event.- Returns:
- List of nodes
-
getMaxSize
public int getMaxSize()
-
getSchema
public Schema getSchema()
-
show
public void show()
-
-
DMelt 3.0 © DataMelt by jWork.ORG