The Conley-Morse Graphs Software
|
This is an abstract class which defines the interface to other classes that describe maps for the use for the program "cmgraphs.cpp". More...
#include <maptype.h>
Public Member Functions | |
MapType () | |
The default constructor of an object which describes a map. More... | |
virtual | ~MapType () |
The destructor of an object which describe a map. More... | |
virtual void | setParam (const double *left, const double *right, int n) |
Sets the parameters to the given intervals defined by their left and right coordinates. More... | |
const double & | getLeftParam (int n) const |
Returns the left value of the given parameter. More... | |
const double & | getRightParam (int n) const |
Returns the right value of the given parameter. More... | |
virtual void | compute (const double *xleft, const double *xright, double *yleft, double *yright, int dim, const spcCoord *coord, int subdiv) const =0 |
Computes the image of a box whose left and right coordinates are given. More... | |
void | operator() (const IntervalType *x, IntervalType *y, int dim, const spcCoord *coord, int subdiv) const |
An interface to the function 'compute' based on intervals. More... | |
bool | adjust (bool successful, int subdiv) |
Adjusts parameters if necessary after a successful computation or after an unsuccessful computation of the graph of the map at a specific subdivision level. More... | |
std::string | getOptInfo () const |
Gets a single line of information on optimization of the computation of the map, so that it can be used by maps created for the same and nearby parameter values. More... | |
void | useOptInfo (const std::string &info) |
Uses a prevously saved line of information on optimization of the computation of the map for the same or nearby parameter values. More... | |
void | saveInternals (chomp::multiwork::mwData &data) const |
Saves the internal parameters and other data of the map to the mwData structure. More... | |
void | loadInternals (chomp::multiwork::mwData &data) |
Retrieves the internal paramters and other data of the map from the mwData structure. More... | |
virtual double | getTimeStep (int subdiv) const |
Returns the time step, which is 1 for a map, or the time t of integration in case of a time-t map of a flow. More... | |
virtual std::string | name () const |
Returns the name of the map. More... | |
Private Member Functions | |
MapType (const MapType &) | |
The copy constructor should not be used. More... | |
MapType & | operator= (const MapType &) |
The assignment operator should not be used. More... | |
Private Attributes | |
double * | leftParam |
The left ends of the parameter intervals of the map. More... | |
double * | rightParam |
The right ends of the parameter intervals of the map. More... | |
int | nParam |
The number of parameters defined. More... | |
This is an abstract class which defines the interface to other classes that describe maps for the use for the program "cmgraphs.cpp".
|
inline |
|
inlinevirtual |
The destructor of an object which describe a map.
Definition at line 153 of file maptype.h.
References leftParam, and rightParam.
|
inlineprivate |
|
inline |
|
pure virtual |
Computes the image of a box whose left and right coordinates are given.
Fills in the images with the left and right coordinates of the image box. Whenever this information is relevant, the integer coordinates of the box are provided, as well as the subdivision level of the full phase space box; otherwise the pointer to the coordinates is set to 0, and the subdivision level is undefined.
Implemented in MapDifference, MapGlobCLog, MapHarvesting, MapHenon, MapNeuron1, MapPeriodic, MapPopModel, StandardMap, MapTwoCirc, MapTwoTorus, MapVanderPol1, MapWhales, MapTight, and MapOdeApprox.
Referenced by operator()().
|
inline |
Returns the left value of the given parameter.
Definition at line 196 of file maptype.h.
References leftParam, and nParam.
Referenced by MapDifference::compute(), MapGlobCLog::compute(), MapHarvesting::compute(), MapHenon::compute(), MapNeuron1::compute(), MapPopModel::compute(), StandardMap::compute(), MapTwoCirc::compute(), MapTwoTorus::compute(), MapVanderPol1::compute(), MapWhales::compute(), MapDuffingApprox::vectorField(), MapLorenzApprox::vectorField(), MapRoesslerApprox::vectorField(), and MapVanderPolApprox::vectorField().
|
inline |
|
inline |
Returns the right value of the given parameter.
Definition at line 203 of file maptype.h.
References nParam, and rightParam.
Referenced by MapDifference::compute(), MapGlobCLog::compute(), MapHarvesting::compute(), MapHenon::compute(), MapNeuron1::compute(), MapPopModel::compute(), StandardMap::compute(), MapVanderPol1::compute(), and MapWhales::compute().
|
inlinevirtual |
Returns the time step, which is 1 for a map, or the time t of integration in case of a time-t map of a flow.
This value may be different at each subdivision depth. May return an approximate value, especially for flows.
Reimplemented in MapOdeTimeT.
|
inline |
Retrieves the internal paramters and other data of the map from the mwData structure.
Definition at line 260 of file maptype.h.
References setParam().
Referenced by MapOdeTimeT::loadInternals().
|
inlinevirtual |
|
inline |
|
inline |
Saves the internal parameters and other data of the map to the mwData structure.
Definition at line 245 of file maptype.h.
References leftParam, nParam, and rightParam.
Referenced by MapOdeTimeT::saveInternals().
|
inlinevirtual |
Sets the parameters to the given intervals defined by their left and right coordinates.
Reimplemented in MapOdeApprox, and MapOdeTimeT.
Definition at line 172 of file maptype.h.
References leftParam, nParam, and rightParam.
Referenced by loadInternals(), MapOdeApprox::setParam(), and MapOdeTimeT::setParam().
|
inline |
|
private |
The left ends of the parameter intervals of the map.
Definition at line 130 of file maptype.h.
Referenced by getLeftParam(), saveInternals(), setParam(), and ~MapType().
|
private |
The number of parameters defined.
Definition at line 136 of file maptype.h.
Referenced by getLeftParam(), getRightParam(), saveInternals(), and setParam().
|
private |
The right ends of the parameter intervals of the map.
Definition at line 133 of file maptype.h.
Referenced by getRightParam(), saveInternals(), setParam(), and ~MapType().