Documentation
HostApplet.java - standard hostapplet class
Host.java – CartsCanvas and main Host classes
Cart.java –contains Cart class code and MassBox, wthich is used by Cart.class
SFormat.java – contains small class for formatting float values and angles
OutputBox.java – canvas with the carts' parameters of the applet.
evtArrowDND1 and evtArrowDND2 - DND event of Carts' velocity arrow
evtEnableVectors - published when we need to show/hide carts' velocity arrows
evtVel1, evtVel2, evtMass1, evtMass2 - spinbox events
evtUpdateBox - forces OutputBox to update
evtInelasticCollision - event to tell OutputBox to update delta E
evtCollisionTypeChanged - checkbox group event
final static String evtSHfrm1..evtSHfrm8, evtCSHfrm9 = "HideFrm..." - shows or hides the corresponding formulas or (evtCSHfrm9) makes it possible to appear after the collision.
final static String evtSHCanvas = "HideCanvas" - shows or hides the entire canvas
run(), stop(), reset() - standard RSR methods.
Elastic() & Inelastic() - methods to change the type of collision
V1, V2 - double properties, set up the velocity values
M1, M2 - double properties, set up the mass values
SHfrm1..9 - boolean property, displays or hides some formulas
SHCanvas - boolean property, displays or hides canvas