-
Notifications
You must be signed in to change notification settings - Fork 0
/
calendarUnit.h
78 lines (62 loc) · 1.37 KB
/
calendarUnit.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*IMS - Modelovani a simulace
*
* Project: Simulator cernobilych stochastickych Petriho siti
* File: calendarUnit.h
* Author: Dusan Kovacic, xkovac21, xkovac21@stud.fit.vutbr.cz
* Jaroslav Sendler, xsendl00, xsendl00@stud.fit.vutr.cz
*
* Encoding: UTF-8
*
* Description:
*/
#pragma once
#ifndef CALELEMENT_H__
#define CALELEMENT_H__
#include "base.h"
/**
* Prvek kalendare.
*/
class SCCalendarUnit {
protected:
SCBase* base; // misto
double time; // cas
public:
SCCalendarUnit* cont; // predchozi element
SCCalendarUnit* pre; // nasledujici element
/**
* Konstruktor.
* @param[in] <SCBase*> base misto
* @param[in] <doouble> time cas
*/
SCCalendarUnit( SCBase* base = 0, double time = 0.0 );
/**
* Kopirovaci konstruktor.
* @param[in] <const CalElement&> element Prvek kalendare jehoz se vytvori kopie.
*/
SCCalendarUnit( const SCCalendarUnit& element );
/**
* Destruktor.
*/
~SCCalendarUnit(){}
/**
* Nastaveni casu.
* @param[in] <double> time cas
*/
void SetTime( const double time );
/**
* Nastaveni mista.
* @param[in] <SCBase>
*/
void SetBase( SCBase* base );
/**
* Vraci cas.
* @return <double> cas
*/
double GetTime();
/**
* Vrati misto.
* @return <SCBase*> misto
*/
SCBase* GetBase();
};
#endif //CALELEMENT_H__