/*
 * FemModel.h: 
 */

#ifndef _FEMMODEL_H_
#define _FEMMODEL_H_

/*Headers:*/
/*{{{*/
#include "./Object.h"
#include "../toolkits/toolkits.h"
class DataSet;
class Parameters;
class NodeSets;
/*}}}*/


class FemModel {

	/*no private members, as we need access to these datasets quite often!:*/

	public:

		int                 nummodels;
		int                 solution_type;
		int*                analysis_type_list; //list of analyses this femmodel is going to carry out
		int                 analysis_counter; //counter into analysis_type_list
		
		Elements*           elements; //elements (one set for all analyses)
		Nodes*              nodes; //one set of nodes
		Vertices*           vertices; //one set of vertices
		Constraints*        constraints; //one set of constraints. each constraint knows which analysis_type it handles
		Loads*              loads;  //one set of constraints. each constraint knows which analysis_type it handles
		Materials*          materials;  //one set of materials, for each element
		Parameters*         parameters; //one set of parameters, independent of the analysis_type
		Results*            results; //results that cannot be fit into the elements (such as one time constants, arrays, strings, etc ...)

		/*constructors, destructors: */
		FemModel(char* inputfilename, char* outputfilename, const int solution_type,const int* analyses,const int nummodels);
		~FemModel();

		/*Methods: */
		void Echo();

		/*Fem: */
		void  SetCurrentConfiguration(int configuration_type);
		void  SetCurrentConfiguration(int configuration_type,int analysis_type);

};

#endif
