RINASim  October 2016
Documentation of framework for OMNeT++
EnrollmentBase.h
Go to the documentation of this file.
1 //
2 // This program is free software: you can redistribute it and/or modify
3 // it under the terms of the GNU Lesser General Public License as published by
4 // the Free Software Foundation, either version 3 of the License, or
5 // (at your option) any later version.
6 //
7 // This program is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 // GNU Lesser General Public License for more details.
11 //
12 // You should have received a copy of the GNU Lesser General Public License
13 // along with this program. If not, see http://www.gnu.org/licenses/.
14 //
15 
24 #ifndef ENROLLMENTBASE_H_
25 #define ENROLLMENTBASE_H_
26 
27 #include <omnetpp.h>
28 #include "RINASignals.h"
29 #include "Flow.h"
30 #include "CDAPMessage_m.h"
32 
33 class EnrollmentBase : public cSimpleModule {
34 public:
36  virtual ~EnrollmentBase();
37  virtual void startCACE(APNIPair* apnip) = 0;
38  virtual void startEnrollment(EnrollmentStateTableEntry* entry) = 0;
39  virtual void insertStateTableEntry(Flow* flow) = 0;
40  virtual void receivePositiveConnectResponse(CDAPMessage* msg) = 0;
41  virtual void receiveNegativeConnectResponse(CDAPMessage* msg) = 0;
42  virtual void receiveConnectRequest(CDAPMessage* msg) = 0;
43 
44  virtual void receiveStartEnrollmentRequest(CDAPMessage* msg) = 0;
45  virtual void receiveStartEnrollmentResponse(CDAPMessage* msg) = 0;
46  virtual void receiveStopEnrollmentRequest(CDAPMessage* msg) = 0;
47  virtual void receiveStopEnrollmentResponse(CDAPMessage* msg) = 0;
48  virtual void receiveStartOperationRequest(CDAPMessage* msg) = 0;
49  virtual void receiveStartOperationResponse(CDAPMessage* msg) = 0;
50 
51 protected:
52  virtual void initialize() = 0;
53 
54  virtual void parseConfig(cXMLElement* config) = 0;
55 
56  virtual void authenticate(EnrollmentStateTableEntry* entry, CDAP_M_Connect* msg) = 0;
57 };
58 
59 #endif /* ENROLLMENTBASE_H_ */
virtual void startCACE(APNIPair *apnip)=0
Enrollment state table entry .
Class representing flow object with attributes from specs.
Definition: Flow.h:45
virtual void parseConfig(cXMLElement *config)=0
virtual void initialize()=0
virtual void receiveStopEnrollmentRequest(CDAPMessage *msg)=0
virtual void receivePositiveConnectResponse(CDAPMessage *msg)=0
virtual void receiveStartEnrollmentResponse(CDAPMessage *msg)=0
virtual void authenticate(EnrollmentStateTableEntry *entry, CDAP_M_Connect *msg)=0
virtual void receiveStartOperationRequest(CDAPMessage *msg)=0
virtual void receiveStartOperationResponse(CDAPMessage *msg)=0
virtual ~EnrollmentBase()
virtual void startEnrollment(EnrollmentStateTableEntry *entry)=0
virtual void receiveStartEnrollmentRequest(CDAPMessage *msg)=0
virtual void receiveConnectRequest(CDAPMessage *msg)=0
virtual void receiveNegativeConnectResponse(CDAPMessage *msg)=0
virtual void receiveStopEnrollmentResponse(CDAPMessage *msg)=0
virtual void insertStateTableEntry(Flow *flow)=0