net.algart.model3d.common.movement.model
Class PhysicalMedium

java.lang.Object
  extended by net.algart.model3d.common.movement.model.PhysicalMedium
All Implemented Interfaces:
Item

public final class PhysicalMedium
extends java.lang.Object
implements Item

Physical medium: an item which acts to any other item, which have a velocity, by PhysicalMediumResistanceRule interaction. It is supposed that the physical medium slows down the movement of any item, namely, acts to it with the resistance force F=−σvd, where d is some size of that item and σ is the parameter of this object: resistance coefficient.

This class is not thread-safe, but is thread-compatible and can be synchronized manually if multithread access is necessary.

AlgART Laboratory 2010

Since:
JDK 1.5
Version:
1.0
Author:
Daniel Alievsky

Constructor Summary
Constructor and Description
PhysicalMedium(double resistanceCoefficient)
          Creates new physical medium with the specified resistance coefficient σ=resistanceCoefficient.
 
Method Summary
Modifier and Type Method and Description
 double getResistanceCoefficient()
          Returns the resistance coefficient σ.
 void setResistanceCoefficient(double resistanceCoefficient)
          Sets the resistance coefficient σ.
 java.lang.String toString()
          Returns a brief string description of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PhysicalMedium

public PhysicalMedium(double resistanceCoefficient)
Creates new physical medium with the specified resistance coefficient σ=resistanceCoefficient.

Parameters:
resistanceCoefficient - resistance coefficient σ.
Method Detail

getResistanceCoefficient

public double getResistanceCoefficient()
Returns the resistance coefficient σ.

Returns:
the resistance coefficient σ.

setResistanceCoefficient

public void setResistanceCoefficient(double resistanceCoefficient)
Sets the resistance coefficient σ.

Parameters:
resistanceCoefficient - new resistance coefficient σ.

toString

public java.lang.String toString()
Returns a brief string description of this object.

The result of this method may depend on implementation.

Overrides:
toString in class java.lang.Object
Returns:
a brief string description of this object.