|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulations.objects.BaseObject
simulations.objects.EMCollection
A class which contains a collection of objects which extend BaseObject. This class knows how to compute the electric and magnetic and etc. fields of all the base objects of which it is comprised.
Field Summary | |
java.util.Vector |
sources
sources is a vector which contains references to the base objects in the EMCollection |
private Vec3 |
temp
a temporary location for computation of the total electric field and etc. |
Constructor Summary | |
EMCollection()
The constructor for EMCollection. |
Method Summary | |
void |
Add(BaseObject em)
adds a BaseObject to the collection of EM objects in the collection |
Vec3 |
Bfield(Vec3 x,
Vec3 B)
This method computes the total magnetic field of all the EM objects in the collection |
Vec3 |
Efield(Vec3 x,
Vec3 E)
This method computes the total electric field of all the EM objects in the collection |
void |
Evolve(double dt)
Evolves all the base objects with the naive evolution specified. |
Vec3 |
Pfield(Vec3 x,
Vec3 P)
This method computes the total Pauli field of all the EM objects in the collection |
void |
Remove(BaseObject em)
removes a BaseObject from the collection of EM objects in the collection |
Methods inherited from class simulations.objects.BaseObject |
Bfield, Efield, Pfield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.util.Vector sources
private Vec3 temp
Constructor Detail |
public EMCollection()
Method Detail |
public Vec3 Efield(Vec3 x, Vec3 E)
Efield
in class BaseObject
x
- the position of the observerE
- the total electric field at the position of the observer
public Vec3 Bfield(Vec3 x, Vec3 B)
Bfield
in class BaseObject
x
- the position of the observerB
- the total magnetic field at the position of the observer
public Vec3 Pfield(Vec3 x, Vec3 P)
Pfield
in class BaseObject
x
- the position of the observerP
- the total Pauli field at the position of the observer
public void Evolve(double dt)
Evolve
in class BaseObject
dt
- time steppublic void Add(BaseObject em)
em
- the base object to be addedpublic void Remove(BaseObject em)
em
- the base object to be removed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |