All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class soundmodel.SonicForce

java.lang.Object
   |
   +----soundmodel.SonicForce

public class SonicForce
extends Object
Contains methods to create stimulus force to be applied to a SonicObject. Force is random noise. Intended to be subclassed for different type of forces.


Variable Index

 o durationOfForce
total time of force in seconds
 o force
array of force sampled over time
 o nSamples
size of buffer
 o samplingRate
this must be 8012

Constructor Index

 o SonicForce(double, double)
Allocate force buffer at giver sampling rate (must be 8012) and duration

Method Index

 o makeForce(double)
Create force, not bigger than maxforce (About 1.0 is normal.)

Variables

 o samplingRate
 protected double samplingRate
this must be 8012

 o durationOfForce
 protected double durationOfForce
total time of force in seconds

 o force
 public double force[]
array of force sampled over time

 o nSamples
 protected int nSamples
size of buffer

Constructors

 o SonicForce
 public SonicForce(double srat,
                   double time)
Allocate force buffer at giver sampling rate (must be 8012) and duration

Methods

 o makeForce
 public void makeForce(double maxforce)
Create force, not bigger than maxforce (About 1.0 is normal.)


All Packages  Class Hierarchy  This Package  Previous  Next  Index