10#include <boost/serialization/export.hpp>
11#include <boost/serialization/base_object.hpp>
12#include "../Global/SimConstants.h"
14#include "../Crew/Timp.h"
15#include "../CalculationAid/Probability.h"
16#include "../Global/TermConversions.h"
17#include <boost/archive/text_oarchive.hpp>
18#include <boost/archive/text_iarchive.hpp>
19#include <boost/serialization/access.hpp>
80 template<
class Archive>
81 void serialize(Archive & ar,
const unsigned int version) {
83 ar & boost::serialization::base_object<Time>(*
this);
84 ar & boost::serialization::base_object<Probability>(*
this);
The end state (ES node) that terminates one sequence of the DET.
virtual ~BranchEndState()
std::string consequence_description
void saveInfoToFile()
Writes this end state as an ES node file, overwriting any existing file.
void setIDOfThisEndState(int)
Sets the end state ID. It is also the sequence ID used in the ZESNode file name.
Consequence type_of_consequence
void copyBranchEndState(BranchEndState &)
Copies every field, including the Time and Probability parts.
Consequence getTypeOfConsequence()
void setTypeOfConsequence(Consequence)
int getIDOfTheMotherBranch()
void saveBranchEndStateToFile(std::ofstream &)
Writes the end state to a text restart stream as <consequence as int> <id> <mother branch id> <descri...
int ID_of_the_mother_branch
void setConsequenceDescription(std::string)
void setIDOfTheMotherBranch(int)
Sets the ID of the branch (PE node) this end state hangs from.
void retrieveBranchEndStateFromFile(std::ifstream &)
Reads the layout written by saveBranchEndStateToFile. The description is read with >>,...
void retrieveBranchEndStateFromFile(std::string strFileName)
Loads an end state from an ES node file written by saveInfoToFile.
void serialize(Archive &ar, const unsigned int version)
friend class boost::serialization::access
std::string getConsequenceDescription()
BranchEndState()
Constructs an end state with consequence Consequence::NoKB, both IDs sim::None and the description "N...
int getIDOfThisEndState()