Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

feynman.framework.system
Class CartesianObjectFactory  view CartesianObjectFactory download CartesianObjectFactory.java

java.lang.Object
  extended byfeynman.framework.system.CartesianObjectFactory
All Implemented Interfaces:
PhysicalObjectFactory

public class CartesianObjectFactory
extends java.lang.Object
implements PhysicalObjectFactory

Factory class that implements PhysicalObjectFactory. Use this class to create object that are used in the study of Cartesian Coordinate Systems. To do this first indicate in the Simulation.properties the usage of the Factory and a corresponding PhysicalObject in the following manner:

 # Use the cartesian coordinate system.
 PhysicalObjectFactoryClass=feynman.framework.CartesianObjectFactory

 # User defined class of the PhysicalObject to use in the PhysicalSystem
 PhysicalObjectClass=CartesianParticle 
 

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

Field Summary
private static CartesianObjectFactory INSTANCE
           
 
Constructor Summary
private CartesianObjectFactory()
           
 
Method Summary
 PhysicalObject create(feynman.framework.simulation.Simulation sim)
          Factory method for generating PhysicalObjects in the Cartesian Coordinate System.
static CartesianObjectFactory getInstance()
          Use this method to retrieve an instance of the Factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

private static final CartesianObjectFactory INSTANCE
Constructor Detail

CartesianObjectFactory

private CartesianObjectFactory()
Method Detail

getInstance

public static final CartesianObjectFactory getInstance()
Use this method to retrieve an instance of the Factory.
Note: This method is used internally and should never be used for a user specific implementation.


create

public PhysicalObject create(feynman.framework.simulation.Simulation sim)
                      throws PhysicalObjectFactoryException
Factory method for generating PhysicalObjects in the Cartesian Coordinate System.

Specified by:
create in interface PhysicalObjectFactory