RINASim
October 2016
Documentation of framework for OMNeT++
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
QueueInfo.h
Go to the documentation of this file.
1
// The MIT License (MIT)
2
//
3
// Copyright (c) 2014-2016 Brno University of Technology, PRISTINE project
4
//
5
// Permission is hereby granted, free of charge, to any person obtaining a copy
6
// of this software and associated documentation files (the "Software"), to deal
7
// in the Software without restriction, including without limitation the rights
8
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
// copies of the Software, and to permit persons to whom the Software is
10
// furnished to do so, subject to the following conditions:
11
//
12
// The above copyright notice and this permission notice shall be included in
13
// all copies or substantial portions of the Software.
14
//
15
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
// THE SOFTWARE.
22
/*
23
* @file QueueInfo.h
24
* @author Marcel Marek
25
* @date Apr 28, 2016
26
* @brief
27
* @detail
28
*/
29
30
#ifndef QUEUEINFO_H_
31
#define QUEUEINFO_H_
32
33
#include <omnetpp.h>
34
#include "
Flow.h
"
35
36
class
QueueInfo
:
public
cObject
37
{
38
private
:
39
Flow
*
flow
;
40
unsigned
int
capacity
;
41
unsigned
int
occupied
;
42
// unsigned int free;
43
44
public
:
45
QueueInfo
();
46
virtual
~QueueInfo
();
47
unsigned
int
getCapacity
()
const
;
48
void
setCapacity
(
unsigned
int
capacity);
49
Flow
*
getFlow
()
const
;
50
void
setFlow
(
Flow
* flow);
51
unsigned
int
getFree
()
const
;
52
unsigned
int
getOccupied
()
const
;
53
void
setOccupied
(
unsigned
int
occupied);
54
};
55
56
#endif
/* QUEUEINFO_H_ */
QueueInfo::getFree
unsigned int getFree() const
Definition:
QueueInfo.cc:70
Flow.h
Flow
Class representing flow object with attributes from specs.
Definition:
Flow.h:45
QueueInfo::occupied
unsigned int occupied
Definition:
QueueInfo.h:41
QueueInfo::capacity
unsigned int capacity
Definition:
QueueInfo.h:40
QueueInfo::~QueueInfo
virtual ~QueueInfo()
Definition:
QueueInfo.cc:81
QueueInfo::setOccupied
void setOccupied(unsigned int occupied)
Definition:
QueueInfo.cc:65
QueueInfo
Definition:
QueueInfo.h:36
QueueInfo::setCapacity
void setCapacity(unsigned int capacity)
Definition:
QueueInfo.cc:45
QueueInfo::flow
Flow * flow
Definition:
QueueInfo.h:39
QueueInfo::setFlow
void setFlow(Flow *flow)
Definition:
QueueInfo.cc:55
QueueInfo::getFlow
Flow * getFlow() const
Definition:
QueueInfo.cc:50
QueueInfo::getCapacity
unsigned int getCapacity() const
Definition:
QueueInfo.cc:40
QueueInfo::QueueInfo
QueueInfo()
Definition:
QueueInfo.cc:34
QueueInfo::getOccupied
unsigned int getOccupied() const
Definition:
QueueInfo.cc:60
src
Common
QueueInfo.h
Generated on Tue Oct 25 2016 21:08:59 for RINASim by
1.8.10