feynman.framework.system
Interface PhysicalMeasurement


public interface PhysicalMeasurement

This interface defines the required method for the Measurement bean. The user will define the necessary get and set methods for the bean on the quantities that are being measured as in the following example:

 ...
     public void setTotalEnergy(double E) {
         this.E = E;
     }

     public double getTotalEnergy() {
         return E;
     }
 ...
 

The user of the framework will specify usage of this class in the Simulation.properties file in the following manner:

 PhysicalMeasurementClass=EnergyMeasurement
 

Version:
$Revision: 1.1.1.1 $ $Date: 2002/11/12 02:25:43 $
Author:
Wes Bailey

Method Summary
 void take(Simulation sim, PhysicalSystem ps)
          Define this method for taking a measurement of the PhysicalSystem during the simulation.
 java.lang.String toSql()
          Define this method in order to use the DbmsDataStore.
 java.lang.String toString()
          Define this method in order to use the FileDataStore.
 

Method Detail

take

public void take(Simulation sim,
                 PhysicalSystem ps)
Define this method for taking a measurement of the PhysicalSystem during the simulation.

toString

public java.lang.String toString()
Define this method in order to use the FileDataStore. Otherwise provide a null implementation.
Overrides:
toString in class java.lang.Object

toSql

public java.lang.String toSql()
Define this method in order to use the DbmsDataStore. Otherwise provide a null implementation.