uk.ac.ed.simulator_pdb.model
Class SimulatorModel

java.lang.Object
  extended byuk.ac.ed.simulator_pdb.model.SimulatorModel

public class SimulatorModel
extends java.lang.Object

User: nix Date: Jun 30, 2004 Time: 4:57:52 PM To change this template use Options | File TemplateBuilderModel.


Nested Class Summary
static class SimulatorModel.SimulationAdapter
           
static class SimulatorModel.SimulationEvent
           
static interface SimulatorModel.SimulationListener
           
 
Field Summary
protected  InstanceFile instance_file
           
static int SIMULATION_HAULTED
           
static int SIMULATION_PAUSED
           
static int SIMULATION_PLAYING
           
static int SIMULATION_RESET
           
 
Constructor Summary
SimulatorModel(Model model)
           
 
Method Summary
 void addCluster(SimCluster cluster)
           
 void addSimulationListener(SimulatorModel.SimulationListener listener)
           
 SimCluster[] getClusters()
           
protected  double getDistance(javax.vecmath.Vector3d v1, javax.vecmath.Vector3d v2)
           
protected  double getDistanceTesselated(javax.vecmath.Vector3d v1, javax.vecmath.Vector3d v2)
           
protected  double getDistanceWalled(javax.vecmath.Vector3d v1, javax.vecmath.Vector3d v2)
           
 double getElapsedTime()
           
 long getFrameDelay()
           
 InstanceFile getInstanceFile()
           
protected  javax.vecmath.Vector3d getPosition(javax.vecmath.Vector3d c)
           
protected  javax.vecmath.Vector3d getPositionTesselated(javax.vecmath.Vector3d c)
           
 double getSquaredDistance(javax.vecmath.Vector3d v1, javax.vecmath.Vector3d v2)
           
protected  double getSquaredDistanceTesselated(javax.vecmath.Vector3d v1, javax.vecmath.Vector3d v2)
           
protected  double getSquaredDistanceWalled(javax.vecmath.Vector3d v1, javax.vecmath.Vector3d v2)
           
 int getState()
           
 double getTimeStep()
           
 double getTimeUnit()
           
 double getTimeValue()
           
 void mergeClusters(SimCluster[] clusters)
           
 void removeCluster(SimCluster cluster)
           
 void removeSimulationListener(SimulatorModel.SimulationListener listener)
           
 void reset()
           
 void setFrameDelay(long frame_delay)
           
 void setInstanceFile(InstanceFile instance_file)
           
 void setState(int state)
           
 void setTimeUnit(double time_unit)
           
 void setTimeValue(double time_value)
           
 void setTransformationMatrix(SimCluster cluster, javax.vecmath.Matrix4d transform_matrix)
           
 void setType(java.lang.String t)
           
 void splitClusterAt(SimBond bond1, SimBond bond2)
           
 boolean testPosition(javax.vecmath.Vector3d c)
           
protected  boolean testPositionWalled(javax.vecmath.Vector3d c)
           
 void updateElapsedTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIMULATION_RESET

public static final int SIMULATION_RESET
See Also:
Constant Field Values

SIMULATION_PLAYING

public static final int SIMULATION_PLAYING
See Also:
Constant Field Values

SIMULATION_PAUSED

public static final int SIMULATION_PAUSED
See Also:
Constant Field Values

SIMULATION_HAULTED

public static final int SIMULATION_HAULTED
See Also:
Constant Field Values

instance_file

protected InstanceFile instance_file
Constructor Detail

SimulatorModel

public SimulatorModel(Model model)
Method Detail

getInstanceFile

public InstanceFile getInstanceFile()

setInstanceFile

public void setInstanceFile(InstanceFile instance_file)

reset

public void reset()

getClusters

public SimCluster[] getClusters()

addCluster

public void addCluster(SimCluster cluster)

removeCluster

public void removeCluster(SimCluster cluster)

setTransformationMatrix

public void setTransformationMatrix(SimCluster cluster,
                                    javax.vecmath.Matrix4d transform_matrix)

mergeClusters

public void mergeClusters(SimCluster[] clusters)

splitClusterAt

public void splitClusterAt(SimBond bond1,
                           SimBond bond2)

getFrameDelay

public long getFrameDelay()

setFrameDelay

public void setFrameDelay(long frame_delay)

getTimeStep

public double getTimeStep()

getElapsedTime

public double getElapsedTime()

updateElapsedTime

public void updateElapsedTime()

getTimeValue

public double getTimeValue()

setTimeValue

public void setTimeValue(double time_value)

getTimeUnit

public double getTimeUnit()

setTimeUnit

public void setTimeUnit(double time_unit)

getState

public int getState()

setState

public void setState(int state)

setType

public void setType(java.lang.String t)

testPosition

public boolean testPosition(javax.vecmath.Vector3d c)

getSquaredDistance

public double getSquaredDistance(javax.vecmath.Vector3d v1,
                                 javax.vecmath.Vector3d v2)

testPositionWalled

protected boolean testPositionWalled(javax.vecmath.Vector3d c)

getPosition

protected javax.vecmath.Vector3d getPosition(javax.vecmath.Vector3d c)

getPositionTesselated

protected javax.vecmath.Vector3d getPositionTesselated(javax.vecmath.Vector3d c)

getDistance

protected double getDistance(javax.vecmath.Vector3d v1,
                             javax.vecmath.Vector3d v2)

getDistanceWalled

protected double getDistanceWalled(javax.vecmath.Vector3d v1,
                                   javax.vecmath.Vector3d v2)

getSquaredDistanceWalled

protected double getSquaredDistanceWalled(javax.vecmath.Vector3d v1,
                                          javax.vecmath.Vector3d v2)

getDistanceTesselated

protected double getDistanceTesselated(javax.vecmath.Vector3d v1,
                                       javax.vecmath.Vector3d v2)

getSquaredDistanceTesselated

protected double getSquaredDistanceTesselated(javax.vecmath.Vector3d v1,
                                              javax.vecmath.Vector3d v2)

addSimulationListener

public void addSimulationListener(SimulatorModel.SimulationListener listener)

removeSimulationListener

public void removeSimulationListener(SimulatorModel.SimulationListener listener)