Esempio n. 1
0
Error_PN2S NetworkAnalyzer::importCompts(vector<models::Compartment > &cmpts)
{
	typename vector<models::Compartment >::iterator n;

	for(n = cmpts.begin(); n != cmpts.end(); ++n) {
		allCompartments.push_back(n.base());
//		importHHChannels(n->hhchannels);
	}
	return Error_PN2S::NO_ERROR;
}
Esempio n. 2
0
Error_PN2S NetworkAnalyzer::importHHChannels(vector<models::HHChannel > &chs)
{
	if(chs.size() > 0)
	{
		typename vector<models::HHChannel >::iterator n;
		for(n = chs.begin(); n != chs.end(); ++n) {
			allHHChannels.push_back(n.base());
		}
	}
	return Error_PN2S::NO_ERROR;
}
Esempio n. 3
0
void
State_t<EVENT>::operator-=(const State_t<EVENT>&s)
{
   for (auto & elem : s._arcs) {
      typename vector<arc_type>::reverse_iterator j;

      for (j = _arcs.rbegin(); j != _arcs.rend(); ++j) {
         if (j->match(elem.event())) {
            _arcs.erase(j.base() - 1);
            break;
         }
      }
   }
}