summaryrefslogtreecommitdiff
path: root/cesar/maximus/scheduler/inc/SchedulerEvent.h
blob: 99b7597175e4419ba4a912034c48e446311603ec (plain)
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
79
80
#ifndef maximus_scheduler_inc_schedulerevent_h
#define maximus_scheduler_inc_schedulerevent_h
/* Maximus project {{{
 *
 * Copyright (C) 2012 MStar Semiconductor
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    maximus/scheduler/inc/SchedulerEvent.h
 * \ingroup maximus_scheduler
 *
 */

#include "maximus/common/types/sci_types.h"
#include "maximus/common/types/networkclock_types.h"
#include "maximus/sci/sci_msg.h"


class SchedulerEvent
{
private:
    Sci_Msg_Station_Id sta_id;
    Network_Clock_Id id;
    Network_Clock_Type type;
    SciMsg *msg;

public:

    SchedulerEvent (
        Sci_Msg_Station_Id arg1,
        Network_Clock_Id arg2,
        Network_Clock_Type arg3,
        SciMsg *arg4);

    virtual ~SchedulerEvent ();

    inline void set_sta_id (Sci_Msg_Station_Id val)
    {
        sta_id = val;
    }

    inline Sci_Msg_Station_Id get_sta_id () const
    {
        return sta_id;
    }

    inline void set_clock_id (Network_Clock_Id val)
    {
        id = val;
    }

    inline Network_Clock_Id get_clock_id () const
    {
        return id;
    }

    inline void set_clock_type (Network_Clock_Type val)
    {
        type = val;
    }

    inline Network_Clock_Type get_clock_type () const
    {
        return type;
    }

    inline void set_sci_msg (SciMsg *val)
    {
        msg = val;
    }

    inline SciMsg *get_sci_msg () const
    {
        return msg;
    }
};

#endif // maximus_scheduler_inc_schedulerevent_h