Package bio.singa.simulation.entities
Class SimpleEntity
- java.lang.Object
-
- bio.singa.simulation.entities.SimpleEntity
-
- All Implemented Interfaces:
bio.singa.features.model.Featureable,ChemicalEntity
public class SimpleEntity extends Object implements ChemicalEntity
- Author:
- cl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleEntity.SimpleEntityBuilder
-
Field Summary
Fields Modifier and Type Field Description static Set<Class<? extends bio.singa.features.model.Feature>>availableFeatures
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleEntity(String identifier)Creates a new chemical entity with the given identifier.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdditionalIdentifier(bio.singa.features.identifiers.model.Identifier identifier)voidaddAdditionalIdentifiers(Collection<bio.singa.features.identifiers.model.Identifier> identifiers)static SimpleEntity.SimpleEntityBuildercreate(String identifier)booleanequals(Object o)List<bio.singa.features.identifiers.model.Identifier>getAllIdentifiers()Set<Class<? extends bio.singa.features.model.Feature>>getAvailableFeatures()<FeatureType extends bio.singa.features.model.Feature>
FeatureTypegetFeature(Class<FeatureType> featureTypeClass)Collection<bio.singa.features.model.Feature<?>>getFeatures()StringgetIdentifier()<FeatureType extends bio.singa.features.model.Feature>
booleanhasFeature(Class<FeatureType> featureTypeClass)inthashCode()booleanisMembraneBound()booleanisSmall()<FeatureType extends bio.singa.features.model.Feature>
voidsetFeature(FeatureType feature)<FeatureType extends bio.singa.features.model.Feature>
voidsetFeature(Class<FeatureType> featureTypeClass)voidsetMembraneBound(boolean membraneBound)voidsetSmall(boolean small)StringtoString()
-
-
-
Constructor Detail
-
SimpleEntity
protected SimpleEntity(String identifier)
Creates a new chemical entity with the given identifier.- Parameters:
identifier- The identifier.
-
-
Method Detail
-
create
public static SimpleEntity.SimpleEntityBuilder create(String identifier)
-
getIdentifier
public String getIdentifier()
- Specified by:
getIdentifierin interfaceChemicalEntity
-
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
-
setSmall
public void setSmall(boolean small)
-
addAdditionalIdentifiers
public void addAdditionalIdentifiers(Collection<bio.singa.features.identifiers.model.Identifier> identifiers)
-
addAdditionalIdentifier
public void addAdditionalIdentifier(bio.singa.features.identifiers.model.Identifier identifier)
-
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
-
-