VPTissue Reference Manual
CoupledSimEvent.h
Go to the documentation of this file.
1 #ifndef COUPLED_SIM_EVENT_H_INCLUDED
2 #define COUPLED_SIM_EVENT_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
22 #include "SimEventType.h"
23 
24 #include <memory>
25 
26 namespace SimPT_Sim { class CoupledSim; }
27 
28 
29 namespace SimPT_Sim {
30 namespace Event {
31 
37 {
38 public:
40  typedef std::shared_ptr<SimPT_Sim::CoupledSim> Source;
41 
43  typedef SimEventType Type;
44 
46  CoupledSimEvent(Source sim, int step, Type type) : m_source(sim), m_step(step), m_type(type) {}
47 
49  Source GetSource() const { return m_source; }
50 
52  int GetStep() const { return m_step; }
53 
55  Type GetType() const { return m_type;}
56 
57 private:
58  Source m_source;
59  int m_step;
60  Type m_type;
61 };
62 
63 } // namespace
64 } // namespace
65 
66 #endif
Type GetType() const
Get Event type.
Source GetSource() const
Get the data member value.
Definition for SimEventType.
Namespace for the core simulator.
int GetStep() const
Get step.
CoupledSimEvent(Source sim, int step, Type type)
Initialize all data members.
An event transmitted by a Coupled Simulator.
SimEventType Type
Type of events triggered by sim.
std::shared_ptr< SimPT_Sim::CoupledSim > Source
Convenience typedef for clients of this class.
SimEventType
Type of events triggered by sim or on behalf of sim by project.
Definition: SimEventType.h:37