-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlagiarismCheckerType.h
60 lines (48 loc) · 1.9 KB
/
PlagiarismCheckerType.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/********************************************************************
* *
* Auto Generated File *
* *
*********************************************************************/
#ifndef __PlagiarismCheckerType_H
#define __PlagiarismCheckerType_H
/** include files **/
#include "atomic.h" // class Atomic
/** forward declarations **/
//TODO: add distribution class declaration here if needed
// Ej: class Distribution ;
/** declarations **/
class PlagiarismCheckerType: public Atomic
{
public:
PlagiarismCheckerType( const string &name = "PlagiarismCheckerType" ) ; // Default constructor
~PlagiarismCheckerType(); // Destructor
virtual string className() const
{return "PlagiarismCheckerType";}
protected:
Model &initFunction();
Model &externalFunction( const ExternalMessage & );
Model &internalFunction( const InternalMessage & );
Model &outputFunction( const InternalMessage & );
private:
const Port &details;
Port &pc_out;
Time pc_time;
int p_local;
int plag_var;
int pc_var;
// [(!) TODO: declare ports, distributions and other private varibles here]
/*********** Example declarations **********************************/
// const Port ∈ // this is an input port named 'in'
// Port &out ; // this is an output port named 'out'
// Distribution *dist ;
// Distribution &distribution() { return *dist; }
/**************************************************************************/
// [(!) declare common variables]
// Lifetime programmed since the last state transition to the next planned internal transition.
Time sigma;
// Time elapsed since the last state transition until now
Time elapsed;
// Time remaining to complete the last programmed Lifetime
Time timeLeft;
}; // class PlagiarismCheckerType
#endif //__PlagiarismCheckerType_H