public class SourceModule extends CommandModule
Modifier and Type | Class and Description |
---|---|
static interface |
SourceModule.SurfaceSourceFactory
interfaces for source factories
|
static interface |
SourceModule.VolumeSourceFactory |
Modifier and Type | Field and Description |
---|---|
double |
boundary_charge |
static java.util.HashMap<java.lang.String,SourceModule.SurfaceSourceFactory> |
surface_source_factories |
static java.util.HashMap<java.lang.String,SourceModule.VolumeSourceFactory> |
volume_source_factories |
protected java.util.ArrayList<VolumeSource> |
volume_source_list |
has_started
Constructor and Description |
---|
SourceModule() |
Modifier and Type | Method and Description |
---|---|
void |
addVolumeSource(VolumeSource vol_source)
adds new volume source
|
void |
exit()
function called prior to program exit
|
void |
init()
function called prior to start of processing input file
|
void |
process(org.w3c.dom.Element element)
reads element data and performs appropriate action
|
static void |
registerSurfaceSource(java.lang.String name,
SourceModule.SurfaceSourceFactory fac) |
static void |
registerVolumeSource(java.lang.String name,
SourceModule.VolumeSourceFactory fac) |
void |
sampleSources()
samples sources and adds particles or updates boundaries
|
void |
start()
function called prior to main loop
|
finish
protected java.util.ArrayList<VolumeSource> volume_source_list
public double boundary_charge
public static java.util.HashMap<java.lang.String,SourceModule.SurfaceSourceFactory> surface_source_factories
public static java.util.HashMap<java.lang.String,SourceModule.VolumeSourceFactory> volume_source_factories
public void init()
CommandModule
init
in class CommandModule
public void process(org.w3c.dom.Element element)
CommandModule
process
in class CommandModule
element
- XML element containing data objectspublic static void registerSurfaceSource(java.lang.String name, SourceModule.SurfaceSourceFactory fac)
name
- fac
- public static void registerVolumeSource(java.lang.String name, SourceModule.VolumeSourceFactory fac)
name
- fac
- public void sampleSources()
public void addVolumeSource(VolumeSource vol_source)
vol_source
- public void exit()
CommandModule
exit
in class CommandModule
public void start()
CommandModule
start
in class CommandModule