|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSimulation
Simulation holds all Assembly information and actually runs the queue-based discrete-assembly algorightm
| Constructor Summary | |
Simulation(Solution s,
java.util.Vector initial_Assemblies,
double ct,
java.util.HashMap bondTimes,
java.util.HashMap confTimes,
java.util.HashMap bindingPartner)
Creates a Simulation with specified Solution s, Vector of Assemblies a, double current time, and HashMap of bonding times (detailed in private variable definitions), and HashMap of conformation changing times (detailed in private variable definitions) |
|
| Method Summary | |
java.util.Vector |
getAssemblies()
todo future never used Returns a Vector of all the Assemblies in this Simulation |
double |
getRand()
Returns a random double within [0 , 1) |
int |
numberOfSize(int size)
gets the number of assemblies in the simulation of a certain size |
void |
printQ()
|
void |
run()
Runs this simulation by calling step() repeatedly until a certain number of events have been processed. |
SimulatorGraphic |
startGraphic()
Creates a SimulatorGraphic based on this Simulation and returns it. |
void |
step()
|
java.lang.String |
toString()
Returns a String version of this Simulation |
void |
updateMonomerCount()
Updates the JLabel showing the number of monomers |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Simulation(Solution s,
java.util.Vector initial_Assemblies,
double ct,
java.util.HashMap bondTimes,
java.util.HashMap confTimes,
java.util.HashMap bindingPartner)
s - Solution the properities of environment in which the
simulation occursinitial_Assemblies - Vector of Assemblies to be assembledct - double current timebondTimes - HashMap of HashMaps String bstNames | | | | | | | | | |->
double times[3]. (times[0]-->bindingTime, | |
times[1]-->breakingTime, | |
times[2]-->intraAssemblyBindingTime) | | | | |__| (Another
HashMap, keys are also String bstNames)confTimes - HashMap of HashMaps String confNames | | | | | | | | | |->
double times[1]. (times[0]-->confChangeTime) | | | | | | | |
|__| (Another HashMap, keys are also String confNames)bindingPartner - HashMap of BindingSite type and corresponding compatable
BindingSite types| Method Detail |
public void run()
public void step()
public double getRand()
public java.lang.String toString()
public java.util.Vector getAssemblies()
public SimulatorGraphic startGraphic()
public void printQ()
public int numberOfSize(int size)
size - -
int
public void updateMonomerCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||