RINASim  October 2016
Documentation of framework for OMNeT++
DAFEnrollmentObj.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 
32 #ifndef DAFENROLLMENTOBJ_H_
33 #define DAFENROLLMENTOBJ_H_
34 
35 #include <string>
36 #include <sstream>
37 #include "Address.h"
38 
39 class DAFEnrollmentObj : public cObject {
40 public:
43  virtual ~DAFEnrollmentObj();
44 
45  virtual DAFEnrollmentObj* dup() const;
46 
47  void setAddress(const APN& address);
48  void setApName(const APN& apName);
51  void setIsImmediate(bool immediate);
52  void setSrcAddress(const Address& srcAddr);
53  void setDstAddress(const Address& dstAddr);
54 
55 
56  const APN& getAddress() const;
57  const APN& getApName() const;
58  const APN& getCurrentAddress() const;
59  int getAddressExpirationTime() const;
60  bool getIsImmediate() const;
61  const Address& getSrcAddress() const;
62  const Address& getDstAddress() const;
63 
64 
65 private:
66 
68 
70 
72 
74 
75  bool immediate;
76 
78 
80 };
81 
82 #endif /* ENROLLMENTOBJ_H_ */
Application Process Name class.
Definition: APN.h:36
void setCurrentAddress(const APN &currentAddress)
int getAddressExpirationTime() const
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