📄 ghmm_gmltransition.h
字号:
/* * * created: 26 Feb 2002 by Wasinee Rungsarityotin * authors: Wasinee Rungsarityotin (rungsari@molgen.mpg.de) * file : $Source: /cvsroot/ghmm/ghmm/ghmm++/GHMM_GMLTransition.h,v $ * $Id: GHMM_GMLTransition.h,v 1.2 2003/04/24 17:24:01 wasinee Exp $ * revision date : $Date: 2003/04/24 17:24:01 $ _Copyright (C) 1998-2001, ZAIK/ZPR, Universit鋞 zu K鰈n _ _This program is free software; you can redistribute it and/or modify _it under the terms of the GNU General Public License as published by _the Free Software Foundation; either version 2 of the License, or _(at your option) any later version. _ _This program is distributed in the hope that it will be useful, _but WITHOUT ANY WARRANTY; without even the implied warranty of _MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the _GNU General Public License for more details. _ _You should have received a copy of the GNU General Public License _along with this program; if not, write to the Free Software _Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA _ */#ifndef _GHMM_GMLTRANSITION_H#define _GHMM_GMLTRANSITION_H 1#include <vector>#include <ghmm++/GHMM_Transition.h>#include <ghmm++/begin_code.h>#ifdef HAVE_NAMESPACESnamespace std {#endifclass GHMM_GMLState;template<class StateType> class GHMM_TransitionT : public GHMM_Transition { public: /** Constructor. */ GHMM_TransitionT(XMLIO_Attributes &attrs) : GHMM_Transition(attrs) {;} /** Constructor. */ GHMM_TransitionT(StateType* my_source, StateType* my_target) {;} /** Destructor. */ /** */ vector<double> probs; protected: /** Called by GHMM_Document when a start tag is received. Tag and attributes are passed to this function. */ virtual XMLIO_Element* XMLIO_startTag(const string& tag, XMLIO_Attributes &attrs) = 0; /** Writes the content (XML Spec[43]) of this element. You should use the public XMLIO_Document::write* functions. @return Returns the number of bytes written, but is negative when an error occured and 0 by default. */ virtual const int XMLIO_writeContent(XMLIO_Document& doc) = 0; virtual void XMLIO_getCharacters(const string& characters) = 0; };/** Represents transition between two states. Only needed while model is constructed from xml file. */class GHMM_GMLTransition: public GHMM_TransitionT<GHMM_GMLState> { public: const char* toString() const; /** Constructor. */ GHMM_GMLTransition(XMLIO_Attributes &attrs); GHMM_GMLTransition(GHMM_GMLState* my_source, GHMM_GMLState* my_target, vector<double> my_prob); private: /** Called by GHMM_Document when a start tag is received. Tag and attributes are passed to this function. */ XMLIO_Element* XMLIO_startTag(const string& tag, XMLIO_Attributes &attrs); /** Writes the content (XML Spec[43]) of this element. You should use the public XMLIO_Document::write* functions. @return Returns the number of bytes written, but is negative when an error occured and 0 by default. */ const int XMLIO_writeContent(XMLIO_Document& doc); void XMLIO_getCharacters(const string& characters);};#ifdef HAVE_NAMESPACES}#endif#include <ghmm++/close_code.h>#endif /* _GHMM_TRANSITION_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -