|
||||||||||
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.RandomConstraintsGeneratorV1
public final class RandomConstraintsGeneratorV1
This class is used to generate random flux constraints.
Constructor Summary | |
---|---|
RandomConstraintsGeneratorV1(IrrevRxnFluxome fluxome)
Constructs a new random constraint generator. |
Method Summary | |
---|---|
Interval |
getActive()
Returns the constraint used to represent an active flux. |
int |
getActiveFluxes()
Returns the number of active fluxes in each set of randomly generated flux constraints. |
IrrevRxnFluxome |
getFluxome()
Returns the fluxome for which random objective functions are to be generated. |
Interval |
getInactive()
Returns the constraint used to represent an inactive flux. |
int |
getIterations()
Returns the number of sets of random constraints to be generated. |
ProgressMonitor |
getProgress()
Returns a progress monitor for this process. |
void |
run(ResultsManager<java.util.Map<java.lang.String,Interval>> resultsManager)
Generates sets of random flux constraints and adds them to the provided results manager. |
void |
setActiveFluxes(int activeFluxes)
Sets the total number of active fluxes to be contained in each randomly generated set of flux constraints. |
void |
setIterations(int iterations)
Sets the number of sets of random flux constraints to be produced. |
void |
setOff(Interval inactive)
Sets the constraint used to represent an inactive flux. |
void |
setOn(Interval active)
Sets the constraint used to represent an active flux. |
void |
setRandom(java.util.Random random)
Sets the random number generator to the one provided. |
void |
setReactions(java.util.Set<java.lang.String> reactionNames)
Sets the reaction names for which random constraints are to be generated. |
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 RandomConstraintsGeneratorV1(IrrevRxnFluxome fluxome)
fluxome
- the fluxome for which random flux constraints 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 flux constraints to be
produced.public int getActiveFluxes()
public void setActiveFluxes(int activeFluxes)
activeFluxes
- the total number of active fluxes to be contained
in each randomly generated set of flux constraints.public void setReactions(java.util.Set<java.lang.String> reactionNames)
reactionNames
- the reaction names for which random constraints
are to be generated.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 flux.public void setOff(Interval inactive)
inactive
- the constraint used to represent an inactive flux.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.public ProgressMonitor getProgress()
getProgress
in interface MonitoredProcess<java.util.Map<java.lang.String,Interval>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |