Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

FluxMgr Class Reference

The point of entry for interfacing with the flux package. More...

#include <FluxMgr.h>

List of all members.

Public Methods

 FluxMgr (std::string fileName="")
 ctor looks up library (pass a string to overload default). More...

 FluxMgr (const std::vector<std::string>& fileList)
 ctor for multiple XML documents. More...

 ~FluxMgr ()
EventSourcesource (std::string name)
 create and return a source by name. More...

std::list<std::string> sourceList () const
 access to the source list. More...

void setArea (double area)
 set the target area.

void test (std::ostream& out, std::string source_name, int count)
 generate some test output. More...

void setGlastAngles (std::pair<double,double> ang)
 set the angular (off-zenith) values of the GLAST satellite. More...

void setGlastPosition (std::pair<double,double> pos)
 set the orbital (position) values of the GLAST satellite. More...

void addFactory (std::string name, const ISpectrumFactory* factory )
void setExpansion (double p)
 set the expansion factor for the orbit (-1) = random. More...

void pass ( double t)
 pass a specific amount of time. More...

void synch ()
 synch satellite location with current time. More...

void sampleintvl ( double t )
 set the sample interval.

std::pair<double,double> location ()
 get the current satellite location. More...


Private Methods

DOM_Element getLibrarySource (const DOMString& id)
void defaultFile ()
void init (const std::vector<std::string>& fileList)
EventSourcegetSourceFromXML (const DOM_Element& src)
void writeXmlFile (std::string *fileStr, const std::vector<std::string>& fileList)

Private Attributes

DOM_Document m_library_doc
DOM_Element s_library
std::vector<DOM_Document> m_library_doclist
std::vector<DOM_Element> s_librarylist
std::map<std::string, DOM_Element > m_sources


Detailed Description

The point of entry for interfacing with the flux package.

holds methods for creating sources and sending new particles, and methods for interfacing with the satellite position, and setting the position variables. It is instantiated with the names of the xml files to be used as input to the xml parser.

Definition at line 23 of file FluxMgr.h.


Constructor & Destructor Documentation

FluxMgr::FluxMgr ( std::string fileName = "" )
 

ctor looks up library (pass a string to overload default).

Definition at line 19 of file FluxMgr.cxx.

FluxMgr::FluxMgr ( const std::vector< std::string >& fileList )
 

ctor for multiple XML documents.

Definition at line 31 of file FluxMgr.cxx.

FluxMgr::~FluxMgr ( )
 

Definition at line 113 of file FluxMgr.cxx.


Member Function Documentation

void FluxMgr::addFactory ( std::string name,
const ISpectrumFactory * factory )
 

Definition at line 237 of file FluxMgr.cxx.

void FluxMgr::defaultFile ( ) [private]
 

Definition at line 40 of file FluxMgr.cxx.

Referenced by FluxMgr().

DOM_Element FluxMgr::getLibrarySource ( const DOMString & id ) [private]
 

Definition at line 188 of file FluxMgr.cxx.

Referenced by getSourceFromXML().

EventSource * FluxMgr::getSourceFromXML ( const DOM_Element & src ) [private]
 

Definition at line 131 of file FluxMgr.cxx.

Referenced by source().

void FluxMgr::init ( const std::vector< std::string >& fileList ) [private]
 

Definition at line 51 of file FluxMgr.cxx.

Referenced by FluxMgr(), and defaultFile().

std::pair< double,double > FluxMgr::location ( )
 

get the current satellite location.

Definition at line 271 of file FluxMgr.cxx.

void FluxMgr::pass ( double t )
 

pass a specific amount of time.

Definition at line 257 of file FluxMgr.cxx.

Referenced by test().

void FluxMgr::sampleintvl ( double t )
 

set the sample interval.

void FluxMgr::setArea ( double area )
 

set the target area.

void FluxMgr::setExpansion ( double p )
 

set the expansion factor for the orbit (-1) = random.

Definition at line 251 of file FluxMgr.cxx.

Referenced by test().

void FluxMgr::setGlastAngles ( std::pair< double,double > ang )
 

set the angular (off-zenith) values of the GLAST satellite.

Definition at line 241 of file FluxMgr.cxx.

void FluxMgr::setGlastPosition ( std::pair< double,double > pos )
 

set the orbital (position) values of the GLAST satellite.

Definition at line 246 of file FluxMgr.cxx.

EventSource * FluxMgr::source ( std::string name )
 

create and return a source by name.

Definition at line 116 of file FluxMgr.cxx.

Referenced by test().

std::list< std::string > FluxMgr::sourceList ( ) const
 

access to the source list.

Definition at line 196 of file FluxMgr.cxx.

Referenced by main().

void FluxMgr::synch ( )
 

synch satellite location with current time.

Definition at line 262 of file FluxMgr.cxx.

Referenced by pass().

void FluxMgr::test ( std::ostream & cout,
std::string source_name,
int count )
 

generate some test output.

Definition at line 207 of file FluxMgr.cxx.

Referenced by main().

void FluxMgr::writeXmlFile ( std::string * fileStr,
const std::vector< std::string >& fileList ) [private]
 

Definition at line 276 of file FluxMgr.cxx.

Referenced by init().


Member Data Documentation

DOM_Document FluxMgr::m_library_doc [private]
 

Definition at line 83 of file FluxMgr.h.

std::vector< DOM_Document > FluxMgr::m_library_doclist [private]
 

Definition at line 87 of file FluxMgr.h.

std::map< std::string,DOM_Element > FluxMgr::m_sources [private]
 

Definition at line 92 of file FluxMgr.h.

DOM_Element FluxMgr::s_library [private]
 

Definition at line 85 of file FluxMgr.h.

std::vector< DOM_Element > FluxMgr::s_librarylist [private]
 

Definition at line 89 of file FluxMgr.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:20:36 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000