@ALDParametrizedClass
public class MTBRegion2DSetBag
extends de.unihalle.informatik.Alida.operator.ALDData
Modifier and Type | Field and Description |
---|---|
(package private) Vector<MTBRegion2DSet> |
regionsets
the container of the region sets
|
Constructor and Description |
---|
MTBRegion2DSetBag()
Constructor to create an empty bag of region sets
|
MTBRegion2DSetBag(int capacity)
Constructor to create an empty bag of region sets with the given capacity
|
MTBRegion2DSetBag(de.unihalle.informatik.MiToBo_xml.MTBXMLRegion2DSetBagType regionsetbag)
Construct a bag of region sets from a xml-object created by the
toXMLType method of this class. |
MTBRegion2DSetBag(String filename)
Construct a bag of region sets from a xml-file that was written by the
write method of this class. |
Modifier and Type | Method and Description |
---|---|
void |
add(MTBRegion2DSet regionset)
Add a region set to this bag
|
MTBRegion2DSet |
get(int idx) |
Iterator<MTBRegion2DSet> |
iterator() |
MTBRegion2DSet |
remove(int idx)
Remove a region set from this bag by its index
|
boolean |
remove(MTBRegion2DSet regionset)
Remove a region set from this bag
|
void |
set(int idx,
MTBRegion2DSet regionset) |
int |
size()
Number of region sets in this bag
|
de.unihalle.informatik.MiToBo_xml.MTBXMLRegion2DSetBagType |
toXMLType()
Create a xml representation of this bag of region sets using MiToBo's xml-scheme MTBRegion2DSetBag.xsd
|
void |
write(String filename)
Write this bag of region sets to disk in XML format using MiToBo's xml-scheme MTBRegion2DSetBag.xsd
|
@ALDClassParameter(label="Set of region sets") Vector<MTBRegion2DSet> regionsets
public MTBRegion2DSetBag()
public MTBRegion2DSetBag(int capacity)
public MTBRegion2DSetBag(String filename) throws org.apache.xmlbeans.XmlException, IOException
write
method of this class.
(These xml-files conform to xml-scheme MTBXMLRegion2DSetBag.xsd defined for MiToBo)filename
- path to the xml-fileIOException
- thrown if parsing of xml-file failedorg.apache.xmlbeans.XmlException
- thrown if parsing of xml-file failedpublic MTBRegion2DSetBag(de.unihalle.informatik.MiToBo_xml.MTBXMLRegion2DSetBagType regionsetbag)
toXMLType
method of this class.
(The xml-object conforms to xml-schema MTBXMLRegion2DSetBag.xsd defined for MiToBo)regionsetbag
- public void write(String filename) throws IOException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException, de.unihalle.informatik.Alida.exceptions.ALDOperatorException
IOException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public de.unihalle.informatik.MiToBo_xml.MTBXMLRegion2DSetBagType toXMLType()
public int size()
public void add(MTBRegion2DSet regionset)
public boolean remove(MTBRegion2DSet regionset)
regionset
- set to removepublic MTBRegion2DSet remove(int idx)
idx
- index of the region set to removepublic MTBRegion2DSet get(int idx)
public void set(int idx, MTBRegion2DSet regionset)
public Iterator<MTBRegion2DSet> iterator()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.