Search in sources :

Example 1 with TransportImpl

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

the class PathwayReaderBiopax3 method addObjectTransport.

private Transport addObjectTransport(Element element) {
    Transport transport = new TransportImpl();
    addAttributes(transport, element);
    for (Object child : element.getChildren()) {
        if (child instanceof Element) {
            Element childElement = (Element) child;
            if (!addContentTransport(transport, element, childElement)) {
                showUnexpected(childElement);
            }
        }
    }
    pathwayModel.add(transport);
    return transport;
}
Also used : Element(org.jdom.Element) TransportImpl(org.vcell.pathway.TransportImpl) GroupObject(org.vcell.pathway.GroupObject) BioPaxObject(org.vcell.pathway.BioPaxObject) Transport(org.vcell.pathway.Transport)

Example 2 with TransportImpl

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

the class PathwayReader method addObjectTransport.

private Transport addObjectTransport(Element element) {
    Transport transport = new TransportImpl();
    addAttributes(transport, element);
    for (Object child : element.getChildren()) {
        if (child instanceof Element) {
            Element childElement = (Element) child;
            if (!addContentTransport(transport, element, childElement)) {
                showUnexpected(childElement, transport);
            }
        }
    }
    pathwayModel.add(transport);
    return transport;
}
Also used : Element(org.jdom.Element) TransportImpl(org.vcell.pathway.TransportImpl) BioPaxObject(org.vcell.pathway.BioPaxObject) Transport(org.vcell.pathway.Transport)

Example 3 with TransportImpl

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

the class AnnotationMapping method createInteraction.

private Interaction createInteraction(ReactionStep reactionStep, ArrayList<Xref> xRef, ArrayList<String> name) {
    Interaction interaction = null;
    if (reactionStep instanceof SimpleReaction) {
        interaction = new BiochemicalReactionImpl();
    } else if (reactionStep instanceof FluxReaction) {
        interaction = new TransportImpl();
    }
    interaction.setName(name);
    interaction.setID("BIOMODEL_" + reactionStep.getName());
    for (Xref ref : xRef) {
        interaction.getxRef().add(ref);
    }
    return interaction;
}
Also used : Xref(org.vcell.pathway.Xref) UnificationXref(org.vcell.pathway.UnificationXref) RelationshipXref(org.vcell.pathway.RelationshipXref) PublicationXref(org.vcell.pathway.PublicationXref) SimpleReaction(cbit.vcell.model.SimpleReaction) BiochemicalReactionImpl(org.vcell.pathway.BiochemicalReactionImpl) Interaction(org.vcell.pathway.Interaction) FluxReaction(cbit.vcell.model.FluxReaction) TransportImpl(org.vcell.pathway.TransportImpl)

Aggregations

TransportImpl (org.vcell.pathway.TransportImpl)3 Element (org.jdom.Element)2 BioPaxObject (org.vcell.pathway.BioPaxObject)2 Transport (org.vcell.pathway.Transport)2 FluxReaction (cbit.vcell.model.FluxReaction)1 SimpleReaction (cbit.vcell.model.SimpleReaction)1 BiochemicalReactionImpl (org.vcell.pathway.BiochemicalReactionImpl)1 GroupObject (org.vcell.pathway.GroupObject)1 Interaction (org.vcell.pathway.Interaction)1 PublicationXref (org.vcell.pathway.PublicationXref)1 RelationshipXref (org.vcell.pathway.RelationshipXref)1 UnificationXref (org.vcell.pathway.UnificationXref)1 Xref (org.vcell.pathway.Xref)1