Search in sources :

Example 11 with SBEntity

use of org.vcell.pathway.sbpax.SBEntity in project vcell by virtualcell.

the class BioPAXUtil method getKineticLawsOfController.

// find the kinetic laws of the controls for which this physical entity is a controller
public static Set<SBEntity> getKineticLawsOfController(PhysicalEntity controller, PathwayModel pathwayModel) {
    Set<SBEntity> kineticLaws = new HashSet<SBEntity>();
    if (pathwayModel == null) {
        return kineticLaws;
    }
    Set<Control> controls = getControlsOfController(controller, pathwayModel);
    for (Control c : controls) {
        ArrayList<SBEntity> kLaws = c.getSBSubEntity();
        for (SBEntity kL : kLaws) {
            kineticLaws.add(kL);
        }
    }
    return kineticLaws;
}
Also used : SBEntity(org.vcell.pathway.sbpax.SBEntity) HashSet(java.util.HashSet)

Aggregations

SBEntity (org.vcell.pathway.sbpax.SBEntity)11 SBMeasurable (org.vcell.pathway.sbpax.SBMeasurable)5 HashSet (java.util.HashSet)4 ArrayList (java.util.ArrayList)3 Element (org.jdom.Element)3 BioPaxObject (org.vcell.pathway.BioPaxObject)3 Control (org.vcell.pathway.Control)3 Entity (org.vcell.pathway.Entity)3 GroupObject (org.vcell.pathway.GroupObject)3 PhysicalEntity (org.vcell.pathway.PhysicalEntity)3 PublicationXref (org.vcell.pathway.PublicationXref)3 RelationshipXref (org.vcell.pathway.RelationshipXref)3 Xref (org.vcell.pathway.Xref)3 SBOTerm (org.vcell.pathway.sbo.SBOTerm)3 SBVocabulary (org.vcell.pathway.sbpax.SBVocabulary)3 PathwayStringObject (cbit.vcell.client.desktop.biomodel.BioModelEditorPathwayCommonsPanel.PathwayStringObject)2 BioModelEntityObject (cbit.vcell.model.BioModelEntityObject)2 SBOParam (org.vcell.pathway.sbo.SBOParam)2 PathwayData (cbit.vcell.client.desktop.biomodel.BioModelEditorPathwayCommonsPanel.PathwayData)1 ActiveView (cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveView)1