Search in sources :

Example 1 with InteractionImpl

use of org.vcell.pathway.InteractionImpl in project vcell by virtualcell.

the class PathwayReaderBiopax3 method addObjectInteraction.

private Interaction addObjectInteraction(Element element) {
    if (element.getChildren().size() == 0) {
        // if there are no children it must be a resource inside another object
        InteractionProxy proxy = new InteractionProxy();
        addAttributes(proxy, element);
        pathwayModel.add(proxy);
        return proxy;
    }
    Interaction interaction = new InteractionImpl();
    addAttributes(interaction, element);
    for (Object child : element.getChildren()) {
        if (!addContentInteraction(interaction, element, (Element) child)) {
            showUnexpected((Element) child);
        }
    }
    pathwayModel.add(interaction);
    return interaction;
}
Also used : InteractionProxy(org.vcell.pathway.persistence.BiopaxProxy.InteractionProxy) InteractionImpl(org.vcell.pathway.InteractionImpl) Interaction(org.vcell.pathway.Interaction) MolecularInteraction(org.vcell.pathway.MolecularInteraction) GeneticInteraction(org.vcell.pathway.GeneticInteraction) Element(org.jdom.Element) GroupObject(org.vcell.pathway.GroupObject) BioPaxObject(org.vcell.pathway.BioPaxObject)

Example 2 with InteractionImpl

use of org.vcell.pathway.InteractionImpl in project vcell by virtualcell.

the class PathwayReader method addObjectInteraction.

private Interaction addObjectInteraction(Element element) {
    Interaction interaction = new InteractionImpl();
    addAttributes(interaction, element);
    for (Object child : element.getChildren()) {
        if (!addContentInteraction(interaction, element, (Element) child)) {
            showUnexpected((Element) child, interaction);
        }
    }
    pathwayModel.add(interaction);
    return interaction;
}
Also used : InteractionImpl(org.vcell.pathway.InteractionImpl) Interaction(org.vcell.pathway.Interaction) MolecularInteraction(org.vcell.pathway.MolecularInteraction) GeneticInteraction(org.vcell.pathway.GeneticInteraction) Element(org.jdom.Element) BioPaxObject(org.vcell.pathway.BioPaxObject)

Aggregations

Element (org.jdom.Element)2 BioPaxObject (org.vcell.pathway.BioPaxObject)2 GeneticInteraction (org.vcell.pathway.GeneticInteraction)2 Interaction (org.vcell.pathway.Interaction)2 InteractionImpl (org.vcell.pathway.InteractionImpl)2 MolecularInteraction (org.vcell.pathway.MolecularInteraction)2 GroupObject (org.vcell.pathway.GroupObject)1 InteractionProxy (org.vcell.pathway.persistence.BiopaxProxy.InteractionProxy)1