|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sigpath.task.DBTask
org.sigpath.task.model.TExportModel
org.sigpath.task.model.TSBMLModelExport
public class TSBMLModelExport
This class enables creating an SBML model, constituted currently only by instances of SBMLcompartments, SBMLspecies and SBMLreactions (from elementary and enzymatic reactions). Then uses an instance of SBMLWriter to create the SBML output, or a JSimWriter instance to make a JSim output
| Field Summary | |
|---|---|
protected static int |
ACCROSS_TWO_COMPARTMENTS
|
protected String |
comments
|
protected static int |
K1
|
protected static int |
K2
|
protected static int |
K3
|
protected static int |
KB
|
protected static int |
KBKP
|
protected static int |
KF
|
protected static int |
KM
|
protected static int |
KP
|
protected Model |
model
|
protected String |
modelSpid
|
protected Vector |
sbmlCompartments
|
protected Vector |
sbmlReactions
|
protected Vector |
sbmlSpecies
|
protected StringBuffer |
sbOut
|
protected Unit |
targetUnit
target unit for concentrations. |
protected static int |
VMAX
|
protected static int |
WITHIN_A_COMPARTMENT
|
protected ExportWriter |
writer
|
| Fields inherited from class org.sigpath.task.DBTask |
|---|
dbManager, embeddedTask, entityManager, errors, ftsm, progressListener, sigpathFactory, unitManager, userManager, xdebug |
| Constructor Summary | |
|---|---|
TSBMLModelExport(String spid,
ExportWriter writer)
|
|
| Method Summary | |
|---|---|
protected void |
_execute()
Goes trough the process of reading compartment, molecules, reactions, enzimatic reaction, converting all these into sbml-like objects, including splitting enzimatic reactions into 2 elementary reactions, and spatializing reaction |
protected boolean |
aSingleCompartmentInvoved(Vector sbmlspecies)
checks if the reactions occurs within a single compartment |
void |
convertParameterValuesToTargetUnit(Vector sbmlEntities)
converts all parameters of instances of SbmlEntity class found in the parameter Vector |
ComplexImpl |
createComplexMickaelis(SPDBManager dbm,
EnzymaticReaction enzymaticReaction,
HashMap cm)
Creates a Comple representing the Michaelis complex |
void |
enzymaticReactionTreatment(SPDBManager dbm,
Vector molecules,
Vector rs,
Vector eReactions,
Set exReactions)
for each EnzymaticReaction of the model : splits it into two elementary reactions, add them to a rs vector, and create the corresponding mikaelis complexe. |
String |
getOutFile()
|
Vector |
getSbmlSpecies(Chemical chemical)
gets all the SBMLSpecies in the sbmlSpecies set corresponding to a given Chemical. |
protected boolean |
isThereAnIsolatedSpecieAmongThese(Vector sbmlspecies)
Check for isolated species. |
void |
setHideDate(boolean hideDate)
Instruct the model export to output the date or not. |
void |
setHideDiagramCoordinates(boolean hideDiagramCoordinates)
Instruct the model export to output the diagram coordinates or not. |
void |
setIncludeDiagramLayout(boolean includeDiagramLayout)
|
void |
setModelSpid(String spid)
|
protected boolean |
twoContiguousCompartments(Vector sbmlspecies)
used to test if a SBMLreaction is consistent in a spatial point of view. |
| Methods inherited from class org.sigpath.task.DBTask |
|---|
close, delete, execute, getDbManager, getErrors, isEmbeddedTask, isTaskThrewException, reindex, resolve, setDbManager, setEmbeddedTask, setEmbeddedTask, setObtainTransactionsFrom, setProgressListener, setTaskThrewException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int KF
protected static final int KB
protected static final int KM
protected static final int VMAX
protected static final int KP
protected static final int KBKP
protected static final int K1
protected static final int K2
protected static final int K3
protected static final int WITHIN_A_COMPARTMENT
protected static final int ACCROSS_TWO_COMPARTMENTS
protected Unit targetUnit
protected Vector sbmlSpecies
protected Vector sbmlCompartments
protected Vector sbmlReactions
protected StringBuffer sbOut
protected String comments
protected String modelSpid
protected Model model
protected ExportWriter writer
| Constructor Detail |
|---|
public TSBMLModelExport(String spid,
ExportWriter writer)
| Method Detail |
|---|
public void setHideDate(boolean hideDate)
setHideDate in class TExportModelhideDate - When true, the date will not be included in the model output.public void setHideDiagramCoordinates(boolean hideDiagramCoordinates)
TExportModel
setHideDiagramCoordinates in class TExportModelhideDiagramCoordinates - When true, the date will not be included in the model output.public String getOutFile()
getOutFile in class TExportModelpublic void setModelSpid(String spid)
setModelSpid in class TExportModel
protected void _execute()
throws SigPathDatabaseException
_execute in class DBTaskSigPathDatabaseExceptionprotected boolean isThereAnIsolatedSpecieAmongThese(Vector sbmlspecies)
sbmlspecies -
protected boolean twoContiguousCompartments(Vector sbmlspecies)
sbmlspecies -
protected boolean aSingleCompartmentInvoved(Vector sbmlspecies)
sbmlspecies -
public void enzymaticReactionTreatment(SPDBManager dbm,
Vector molecules,
Vector rs,
Vector eReactions,
Set exReactions)
throws SigPathDatabaseException
dbm - molecules - rs - Vector of Reaction
SigPathDatabaseException
public ComplexImpl createComplexMickaelis(SPDBManager dbm,
EnzymaticReaction enzymaticReaction,
HashMap cm)
dbm - enzymaticReaction - cm - HashMap with all the already created michaelis complex complexes
public Vector getSbmlSpecies(Chemical chemical)
chemical -
public void convertParameterValuesToTargetUnit(Vector sbmlEntities)
throws SigPathDatabaseException
sbmlEntities -
SigPathDatabaseExceptionpublic void setIncludeDiagramLayout(boolean includeDiagramLayout)
|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||