Class StepVars

java.lang.Object
com.molecular_java.StepVars

public class StepVars extends Object
A class for storing variables important for each step of the simulation.
  • Field Details

    • angleOfRotation

      public double angleOfRotation
      Random angle of rotation
    • accepted

      public Boolean accepted
      Tells wheter the system was accepted or not.
    • potential

      public Double potential
      Potentials count for the system.
    • basicPotential

      public Double basicPotential
      Potentials count for the system.
    • bendingPotential

      public Double bendingPotential
      Potentials count for the system.
    • dihedralPotential

      public Double dihedralPotential
      Potentials count for the system.
    • Rg

      public Double Rg
      Gyration radius and distance between the last and the first ball in the system.
    • Re

      public Double Re
      Gyration radius and distance between the last and the first ball in the system.
    • contourLength

      public Double contourLength
      Gyration radius and distance between the last and the first ball in the system.
    • force

      public Double force
      Force, pressure, prob and boltzman (used for accepting/rejecting of the stay).
    • pressure

      public Double pressure
      Force, pressure, prob and boltzman (used for accepting/rejecting of the stay).
    • randomProb

      public Double randomProb
      Force, pressure, prob and boltzman (used for accepting/rejecting of the stay).
    • boltzman

      public Double boltzman
      Force, pressure, prob and boltzman (used for accepting/rejecting of the stay).
  • Constructor Details

    • StepVars

      public StepVars()
      Non-standard constructor, used only to count everything in the initial stay of the system to note it.
    • StepVars

      public StepVars(SimSpace s) throws OperationNotSupportedException
      Standard constructor of the StepVars. Everything is initialized in it.
      Parameters:
      s - simulation state.
      Throws:
      OperationNotSupportedException - if some parameter e.g. name of potential used for its count is not writen properly.
  • Method Details

    • CountAdditionalParams

      public void CountAdditionalParams(SimSpace s) throws OperationNotSupportedException
      In this method some additional parameters about the simulation are count.
      Parameters:
      s - simulation space, all parameters are given in it.
      Throws:
      OperationNotSupportedException - if some parameter e.g. name of potential used for its count is not writen properly.