for (GraphObject go : content)
{
if (go instanceof Conversion)
{
Conversion conv = (Conversion) go;
conversion cnv = conv.getConversion();
convSet.add(cnv);
}
}
Set<pathwayComponent> components = l2p.getPATHWAY_COMPONENTS();
for (conversion cnv : convSet)
{
if (!components.contains(cnv))
{
l2p.addPATHWAY_COMPONENTS(cnv);
}
}
}
else if (l3p != null)
{
for (Process pc : new HashSet<Process>(l3p.getPathwayComponent()))
{
l3p.removePathwayComponent(pc);
}
Set<org.biopax.paxtools.model.level3.Conversion> convSet =
new HashSet<org.biopax.paxtools.model.level3.Conversion>();
for (GraphObject go : content)
{
if (go instanceof ChbConversion)
{
ChbConversion conv = (ChbConversion) go;
org.biopax.paxtools.model.level3.Conversion cnv = conv.getConversion();
convSet.add(cnv);
}
}
Set<Process> components = l3p.getPathwayComponent();