public abstract static class Reaction.Builder<TopLevelType extends Reaction,BuilderType extends Reaction.Builder> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected BuilderType |
builderObject |
protected TopLevelType |
topLevelObject |
| Constructor and Description |
|---|
Builder(Simulation simulation) |
| Modifier and Type | Method and Description |
|---|---|
BuilderType |
addProduct(ChemicalEntity chemicalEntity) |
BuilderType |
addProduct(ChemicalEntity chemicalEntity,
double stoichiometricNumber) |
BuilderType |
addSubstrate(ChemicalEntity chemicalEntity) |
BuilderType |
addSubstrate(ChemicalEntity chemicalEntity,
double stoichiometricNumber) |
BuilderType |
addSubstrate(ChemicalEntity chemicalEntity,
double stoichiometricNumber,
double reactionOrder) |
TopLevelType |
build() |
protected abstract TopLevelType |
createObject(Simulation primaryIdentifer) |
protected abstract BuilderType |
getBuilder() |
BuilderType |
identifier(String identifier) |
BuilderType |
setNonElementary() |
protected final TopLevelType extends Reaction topLevelObject
protected final BuilderType extends Reaction.Builder builderObject
public Builder(Simulation simulation)
protected abstract TopLevelType createObject(Simulation primaryIdentifer)
protected abstract BuilderType getBuilder()
public BuilderType identifier(String identifier)
public BuilderType addSubstrate(ChemicalEntity chemicalEntity)
public BuilderType addSubstrate(ChemicalEntity chemicalEntity, double stoichiometricNumber)
public BuilderType addSubstrate(ChemicalEntity chemicalEntity, double stoichiometricNumber, double reactionOrder)
public BuilderType addProduct(ChemicalEntity chemicalEntity)
public BuilderType addProduct(ChemicalEntity chemicalEntity, double stoichiometricNumber)
public BuilderType setNonElementary()
public TopLevelType build()
Copyright © 2018. All rights reserved.