uk.ac.ed.simulator_pdb.model
Class SimulatorModel
java.lang.Object
uk.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SimulatorModel
public SimulatorModel(Model model)
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)