Package com.molecular_java
Class Ball
java.lang.Object
com.molecular_java.Ball
The class represents balls/particles in the system, so each
balls is an object of this class.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBall()Only for testing.This constructor is used to make a copy of given ball.Makes a "ball" representation of the center of mass in the system.The basic constructor which makes an object of class Ball accordingly to the SimulationBox properties and sets its diameter. -
Method Summary
-
Field Details
-
diameter
Diameter of the ball. -
weight
Weight of the ball. -
coordinates
Position of the ball. -
type
public char typeType of the ball (e.g. amino acid type / HP in a HP model) -
code
public int codeCode for indexing.
-
-
Constructor Details
-
Ball
The basic constructor which makes an object of class Ball accordingly to the SimulationBox properties and sets its diameter.- Parameters:
random-Randomobject to set coordinatesdiam- diameter of the ballaaCodes- a dictionary of codes and values of typestype_in- type of newly forming AA ball
-
Ball
This constructor is used to make a copy of given ball.- Parameters:
ball- the new ball will be copy of
-
Ball
Makes a "ball" representation of the center of mass in the system. Used inRadiusOfGyration(SimSpace s)- Parameters:
centerOfMass- to put a ball on a right position.
-
Ball
public Ball()Only for testing.
-