|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjecthSimulator.library.ReactionPartition
public class ReactionPartition
This object implements an optimized data structure for storing reaction partitioning during hybrid simulations.
Constructor Summary | |
---|---|
ReactionPartition(int nReact)
Creates a new data structure. |
Method Summary | |
---|---|
void |
addFastReaction(int i)
Classifies the i-th reaction as fast. |
void |
addSlowReaction(int i)
Classifies the i-th reaction as slow. |
void |
clear()
Clears the data structure. |
int |
getFastReaction(int i)
Returns the index of the i-th reaction classified as fast. |
int |
getFastReactionNumber()
Returns the total number of reactions classified as fast. |
int |
getSlowReaction(int i)
Returns the index of the i-th reaction classified as slow. |
int |
getSlowReactionNumber()
Returns the total number of reactions classified as slow. |
boolean |
isFastReaction(int i)
Checks if the i-th reaction has been classified as fast. |
boolean |
isSlowReaction(int i)
Checks if the i-th reaction has been classified as slow. |
boolean |
isUnknownReaction(int i)
Checks if the i-th reaction is of unknown type. |
int |
removeFastReaction(int i)
Classifies the i-th fast reaction as a reaction of unknown type. |
int |
removeSlowReaction(int i)
Classifies the i-th slow reaction as a reaction of unknown type. |
void |
switchReaction(int i)
Switches the classification of the i-th reaction (fast to slow or viceversa). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReactionPartition(int nReact)
nReact
- total number of modeled reactionsMethod Detail |
---|
public void clear()
public void addFastReaction(int i)
i
- index of the reactionpublic int getFastReactionNumber()
public int getFastReaction(int i)
i
- the index of the required reaction
public int removeFastReaction(int i)
i
- index of the fast reaction
public boolean isFastReaction(int i)
i
- the index of the reaction to check
public void addSlowReaction(int i)
i
- index of the reactionpublic int getSlowReactionNumber()
public int getSlowReaction(int i)
i
- the index of the required reaction
public int removeSlowReaction(int i)
i
- index of the slow reaction
public boolean isSlowReaction(int i)
i
- the index of the reaction to check
public boolean isUnknownReaction(int i)
i
- the index of the reaction to check
public void switchReaction(int i)
i
- the index of the reaction to switch
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |