44 "Single stimulus protocol.");
62 const TiXmlElement* pXml)
72 const TiXmlElement *pXmlparameter;
74 pXmlparameter = pXml->FirstChildElement(
"START");
75 m_start = atof(pXmlparameter->GetText());
77 pXmlparameter = pXml->FirstChildElement(
"DURATION");
78 m_dur = atof(pXmlparameter->GetText());
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
LibUtilities::SessionReaderSharedPtr m_session
Session.
static std::string className
Name of class.
ProtocolSingle(const LibUtilities::SessionReaderSharedPtr &pSession, const TiXmlElement *pXml)
virtual void v_SetInitialConditions()
virtual NekDouble v_GetAmplitude(const NekDouble time)
virtual void v_GenerateSummary(SolverUtils::SummaryList &s)
static ProtocolSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const TiXmlElement *pXml)
Creates an instance of this class.
void Initialise()
Initialise the protocol storage and set initial conditions.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::vector< std::pair< std::string, std::string > > SummaryList
The above copyright notice and this permission notice shall be included.
ProtocolFactory & GetProtocolFactory()