|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.kernel.fba.proc.FbaProcess<java.util.Map<java.lang.String,Interval>>
sbrt.kernel.fba.proc.RandomEnvGeneratorV1
public final class RandomEnvGeneratorV1
This class is used to generate random environments for use in flux balance analysis.
Constructor Summary | |
---|---|
RandomEnvGeneratorV1(IrrevRxnFluxome fluxome)
Constructs a new random environment generator. |
Method Summary | |
---|---|
Interval |
getActive()
Returns the constraint used to represent an active source flux. |
int |
getActiveFluxes()
Returns the number of active source fluxes in each randomly generated environment. |
IrrevRxnFluxome |
getFluxome()
Returns the fluxome for which random objective functions are to be generated. |
Interval |
getInactive()
Returns the constraint used to represent an inactive source flux. |
int |
getIterations()
Returns the number of random environments to be generated. |
ProgressMonitor |
getProgress()
Returns a progress monitor for this process. |
void |
run(ResultsManager<java.util.Map<java.lang.String,Interval>> resultsManager)
Generates a random environment and adds it to the provided results manager. |
void |
setActiveFluxes(int activeFluxes)
Sets the total number of active source fluxes to be contained in each randomly generated environment. |
void |
setIterations(int iterations)
Sets the number of random environments to be produced. |
void |
setOff(Interval inactive)
Sets the constraint used to represent an inactive source flux. |
void |
setOn(Interval active)
Sets the constraint used to represent an active source flux. |
void |
setRandom(java.util.Random random)
Sets the random number generator to the one provided. |
Methods inherited from class sbrt.kernel.fba.proc.FbaProcess |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RandomEnvGeneratorV1(IrrevRxnFluxome fluxome)
fluxome
- the fluxome for which random environments are to be
generated.Method Detail |
---|
public IrrevRxnFluxome getFluxome()
getFluxome
in class FbaProcess<java.util.Map<java.lang.String,Interval>>
public int getIterations()
public void setIterations(int iterations)
iterations
- the number of random environments to be produced.public int getActiveFluxes()
public void setActiveFluxes(int activeFluxes)
activeFluxes
- the total number of active source fluxes to be
contained in each randomly generated environment.public void setRandom(java.util.Random random)
random
- the random number generator to use.public Interval getActive()
public Interval getInactive()
public void setOn(Interval active)
active
- the constraint used to represent an active source flux.public void setOff(Interval inactive)
inactive
- the constraint used to represent an inactive source flux.public ProgressMonitor getProgress()
getProgress
in interface MonitoredProcess<java.util.Map<java.lang.String,Interval>>
public void run(ResultsManager<java.util.Map<java.lang.String,Interval>> resultsManager)
run
in interface KernelProcess<java.util.Map<java.lang.String,Interval>>
resultsManager
- the results manager to which reaction names mapped
to their randomly assigned constraint is added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |