RINASim  October 2016
Documentation of framework for OMNeT++
DAFEnrollmentObj.cc
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 
32 #include <DAFEnrollmentObj.h>
33 
35 }
36 
37 DAFEnrollmentObj::DAFEnrollmentObj(const Address& srcAddr, const Address& dstAddr) {
38  this->srcAddr = srcAddr;
39  this->dstAddr = dstAddr;
40 }
41 
43 }
44 
46 
48  obj->setAddress(this->getAddress());
50  obj->setApName(this->getApName());
52  obj->setIsImmediate(this->getIsImmediate());
53  obj->setSrcAddress(this->getSrcAddress());
54  obj->setDstAddress(this->getDstAddress());
55 
56  return obj;
57 }
58 
59 void DAFEnrollmentObj::setAddress(const APN& address) {
60  this->address = address;
61 }
62 
63 void DAFEnrollmentObj::setApName(const APN& apName) {
64  this->apName = apName;
65 }
66 
67 void DAFEnrollmentObj::setCurrentAddress(const APN& currentAddress) {
68  this->currentAddress = currentAddress;
69 }
70 
71 void DAFEnrollmentObj::setAddressExpirationTime(int addressExpirationTime) {
72  this->addressExpirationTime = addressExpirationTime;
73 }
74 
75 void DAFEnrollmentObj::setIsImmediate(bool immediate) {
76  this->immediate = immediate;
77 }
78 
80  this->srcAddr = srcAddr;
81 }
82 
84  this->dstAddr = dstAddr;
85 }
86 
88  return this->address;
89 }
90 
92  return this->apName;
93 }
94 
96  return this->currentAddress;
97 }
98 
100  return this->addressExpirationTime;
101 }
102 
104  return this->immediate;
105 }
106 
108  return srcAddr;
109 }
110 
112  return dstAddr;
113 }
Application Process Name class.
Definition: APN.h:36
void setCurrentAddress(const APN &currentAddress)
int getAddressExpirationTime() const
DAFEnrollment object .
virtual DAFEnrollmentObj * dup() const
const APN & getCurrentAddress() const
void setAddress(const APN &address)
virtual ~DAFEnrollmentObj()
bool getIsImmediate() const
const APN & getAddress() const
const APN & getApName() const
void setIsImmediate(bool immediate)
const Address & getSrcAddress() const
const Address & getDstAddress() const
void setApName(const APN &apName)
void setAddressExpirationTime(int addressExpirationTime)
void setSrcAddress(const Address &srcAddr)
void setDstAddress(const Address &dstAddr)
Address class holds IPC Process identification.
Definition: Address.h:42