Package bio.singa.simulation.entities
Class ComplexEntity
- java.lang.Object
-
- bio.singa.mathematics.graphs.model.AbstractMapGraph<GraphComplexNode,GraphComplexEdge,bio.singa.mathematics.vectors.Vector2D,Integer>
-
- bio.singa.simulation.entities.ComplexEntity
-
- All Implemented Interfaces:
bio.singa.features.model.Featureable,bio.singa.mathematics.graphs.model.Graph<GraphComplexNode,GraphComplexEdge,Integer>,ChemicalEntity
public class ComplexEntity extends bio.singa.mathematics.graphs.model.AbstractMapGraph<GraphComplexNode,GraphComplexEdge,bio.singa.mathematics.vectors.Vector2D,Integer> implements ChemicalEntity
- Author:
- cl
-
-
Field Summary
Fields Modifier and Type Field Description static Set<Class<? extends bio.singa.features.model.Feature>>availableFeatures
-
Constructor Summary
Constructors Constructor Description ComplexEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ComplexEntity>add(ChemicalEntity otherEntity, BindingSite bindingSite)voidaddBindingSite(ChemicalEntity first, BindingSite bindingSite)intaddEdgeBetween(int identifier, GraphComplexNode source, GraphComplexNode target)intaddEdgeBetween(GraphComplexNode source, GraphComplexNode target)intaddEdgeBetween(GraphComplexNode source, GraphComplexNode target, BindingSite bindingSite)Optional<ComplexEntity>bind(ComplexEntity otherComplex, BindingSite bindingSite)voidcombine(GraphComplexNode first, GraphComplexNode second, ComplexEntity secondGraph, BindingSite bindingSite)booleancontainsEntity(ChemicalEntity entity)longcountParts(ChemicalEntity entity)booleanequals(Object o)static ComplexEntityfrom(ChemicalEntity chemicalEntity)static ComplexEntityfrom(ChemicalEntity chemicalEntity, BindingSite bindingSite)static ComplexEntityfrom(ChemicalEntity first, ChemicalEntity second)static ComplexEntityfrom(ChemicalEntity chemicalEntity, Collection<BindingSite> bindingSites)List<bio.singa.features.identifiers.model.Identifier>getAllIdentifiers()Set<Class<? extends bio.singa.features.model.Feature>>getAvailableFeatures()ComplexEntitygetCopy()<FeatureType extends bio.singa.features.model.Feature>
FeatureTypegetFeature(Class<FeatureType> featureTypeClass)Collection<bio.singa.features.model.Feature<?>>getFeatures()StringgetIdentifier()List<GraphComplexNode>getNodesWithUnoccupiedBindingSite(BindingSite bindingSite)Optional<GraphComplexNode>getNodeWithUnoccupiedBindingSite(BindingSite bindingSite)<FeatureType extends bio.singa.features.model.Feature>
booleanhasFeature(Class<FeatureType> featureTypeClass)inthashCode()booleanisMembraneBound()booleanisSmall()intnextEdgeIdentifier()IntegernextNodeIdentifier()Optional<ComplexEntity>remove(ChemicalEntity chemicalEntity, BindingSite bindingSite)<FeatureType extends bio.singa.features.model.Feature>
voidsetFeature(FeatureType feature)<FeatureType extends bio.singa.features.model.Feature>
voidsetFeature(Class<FeatureType> featureTypeClass)voidsetMembraneBound(boolean membraneBound)voidsnapTo(ChemicalEntity chemicalEntity, Set<BindingSite> bindingSites)StringtoString()Optional<List<ComplexEntity>>unbind(BindingSite bindingSite)voidupdate()-
Methods inherited from class bio.singa.mathematics.graphs.model.AbstractMapGraph
addEdgeBetween, addNode, addNodeIf, appendGraph, appendNode, containsEdge, containsEdge, containsNode, containsNode, getAllNodes, getEdge, getEdge, getEdges, getMaximumDegree, getNode, getNode, getNodes, removeEdge, removeEdge, removeNode, removeNode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
from
public static ComplexEntity from(ChemicalEntity chemicalEntity)
-
from
public static ComplexEntity from(ChemicalEntity chemicalEntity, BindingSite bindingSite)
-
from
public static ComplexEntity from(ChemicalEntity chemicalEntity, Collection<BindingSite> bindingSites)
-
from
public static ComplexEntity from(ChemicalEntity first, ChemicalEntity second)
-
addEdgeBetween
public int addEdgeBetween(int identifier, GraphComplexNode source, GraphComplexNode target)- Specified by:
addEdgeBetweenin interfacebio.singa.mathematics.graphs.model.Graph<GraphComplexNode,GraphComplexEdge,Integer>- Specified by:
addEdgeBetweenin classbio.singa.mathematics.graphs.model.AbstractMapGraph<GraphComplexNode,GraphComplexEdge,bio.singa.mathematics.vectors.Vector2D,Integer>
-
addEdgeBetween
public int addEdgeBetween(GraphComplexNode source, GraphComplexNode target)
- Specified by:
addEdgeBetweenin interfacebio.singa.mathematics.graphs.model.Graph<GraphComplexNode,GraphComplexEdge,Integer>- Specified by:
addEdgeBetweenin classbio.singa.mathematics.graphs.model.AbstractMapGraph<GraphComplexNode,GraphComplexEdge,bio.singa.mathematics.vectors.Vector2D,Integer>
-
addEdgeBetween
public int addEdgeBetween(GraphComplexNode source, GraphComplexNode target, BindingSite bindingSite)
-
addBindingSite
public void addBindingSite(ChemicalEntity first, BindingSite bindingSite)
-
containsEntity
public boolean containsEntity(ChemicalEntity entity)
-
countParts
public long countParts(ChemicalEntity entity)
-
nextNodeIdentifier
public Integer nextNodeIdentifier()
- Specified by:
nextNodeIdentifierin interfacebio.singa.mathematics.graphs.model.Graph<GraphComplexNode,GraphComplexEdge,Integer>
-
nextEdgeIdentifier
public int nextEdgeIdentifier()
- Specified by:
nextEdgeIdentifierin interfacebio.singa.mathematics.graphs.model.Graph<GraphComplexNode,GraphComplexEdge,Integer>- Overrides:
nextEdgeIdentifierin classbio.singa.mathematics.graphs.model.AbstractMapGraph<GraphComplexNode,GraphComplexEdge,bio.singa.mathematics.vectors.Vector2D,Integer>
-
isMembraneBound
public boolean isMembraneBound()
- Specified by:
isMembraneBoundin interfaceChemicalEntity
-
setMembraneBound
public void setMembraneBound(boolean membraneBound)
- Specified by:
setMembraneBoundin interfaceChemicalEntity
-
isSmall
public boolean isSmall()
- Specified by:
isSmallin interfaceChemicalEntity
-
getAllIdentifiers
public List<bio.singa.features.identifiers.model.Identifier> getAllIdentifiers()
- Specified by:
getAllIdentifiersin interfaceChemicalEntity
-
getFeatures
public Collection<bio.singa.features.model.Feature<?>> getFeatures()
- Specified by:
getFeaturesin interfacebio.singa.features.model.Featureable
-
getFeature
public <FeatureType extends bio.singa.features.model.Feature> FeatureType getFeature(Class<FeatureType> featureTypeClass)
- Specified by:
getFeaturein interfacebio.singa.features.model.Featureable
-
setFeature
public <FeatureType extends bio.singa.features.model.Feature> void setFeature(Class<FeatureType> featureTypeClass)
- Specified by:
setFeaturein interfacebio.singa.features.model.Featureable
-
setFeature
public <FeatureType extends bio.singa.features.model.Feature> void setFeature(FeatureType feature)
- Specified by:
setFeaturein interfacebio.singa.features.model.Featureable
-
hasFeature
public <FeatureType extends bio.singa.features.model.Feature> boolean hasFeature(Class<FeatureType> featureTypeClass)
- Specified by:
hasFeaturein interfacebio.singa.features.model.Featureable
-
getAvailableFeatures
public Set<Class<? extends bio.singa.features.model.Feature>> getAvailableFeatures()
- Specified by:
getAvailableFeaturesin interfacebio.singa.features.model.Featureable
-
getCopy
public ComplexEntity getCopy()
- Specified by:
getCopyin interfacebio.singa.mathematics.graphs.model.Graph<GraphComplexNode,GraphComplexEdge,Integer>
-
bind
public Optional<ComplexEntity> bind(ComplexEntity otherComplex, BindingSite bindingSite)
-
add
public Optional<ComplexEntity> add(ChemicalEntity otherEntity, BindingSite bindingSite)
-
combine
public void combine(GraphComplexNode first, GraphComplexNode second, ComplexEntity secondGraph, BindingSite bindingSite)
-
unbind
public Optional<List<ComplexEntity>> unbind(BindingSite bindingSite)
-
remove
public Optional<ComplexEntity> remove(ChemicalEntity chemicalEntity, BindingSite bindingSite)
-
getNodesWithUnoccupiedBindingSite
public List<GraphComplexNode> getNodesWithUnoccupiedBindingSite(BindingSite bindingSite)
-
getNodeWithUnoccupiedBindingSite
public Optional<GraphComplexNode> getNodeWithUnoccupiedBindingSite(BindingSite bindingSite)
-
snapTo
public void snapTo(ChemicalEntity chemicalEntity, Set<BindingSite> bindingSites)
-
update
public void update()
-
getIdentifier
public String getIdentifier()
- Specified by:
getIdentifierin interfaceChemicalEntity
-
toString
public String toString()
- Overrides:
toStringin classbio.singa.mathematics.graphs.model.AbstractMapGraph<GraphComplexNode,GraphComplexEdge,bio.singa.mathematics.vectors.Vector2D,Integer>
-
-