EventHelix.com: CASE Tools; Real-time and Embedded System Design; Object Oriented Design EventStudio 2.0: System Engineering CASE ToolEventStudio 2.5
Sequence diagram based system design and modeling
Home   What's New   EventStudio 2.5   Real-time Mantra   Thought Projects   Contact Us
Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Datalink_Layer Class Reference

#include <Datalink_Layer.h>

Inheritance diagram for Datalink_Layer:

Inheritance graph
[legend]
Collaboration diagram for Datalink_Layer:

Collaboration graph
[legend]
List of all members.

Detailed Description

The Datalink layer class is an example of the Protocol_Layer design pattern.

This class inherits from the Protocol_Layer and overrides the receive and transmit handlers for the layer. The actual layer processing is performed by the Transmit_Protocol_Handler and the Receive_Protocol_Handler classes.

See also:
Protocol Layer Design Pattern

Definition at line 25 of file Datalink_Layer.h.

Public Member Functions

 Datalink_Layer ()
 Construct a Datalink layer object.

void Transmit (Protocol_Packet *p_Packet)
 This method handles the transmit side processing.

void Handle_Receive (Protocol_Packet *p_Packet)
 This method handles the receive side processing.


Private Attributes

Transmit_Protocol_Handler m_transmit_Protocol_Handler
 Helper class for handling the transmit side processing for this layer.

Receive_Protocol_Handler m_receive_Protocol_Handler
 Helper class for receive side processing for this layer.


Constructor & Destructor Documentation

Datalink_Layer::Datalink_Layer  ) 
 

Construct a Datalink layer object.

The datalink layer functionality is handled by the Transmit_Protcol_Handler and Receive_Protocol_Handler classes.

See also:
Protocol Layer Design Pattern

Definition at line 19 of file DataLink_Layer.cpp.

00019                                : 
00020                     m_transmit_Protocol_Handler(this),
00021                     m_receive_Protocol_Handler(this)
00022 { }


Member Function Documentation

void Datalink_Layer::Transmit Protocol_Packetp_Packet  ) [virtual]
 

This method handles the transmit side processing.

The method receives a Protocol_Packet from the upper layer and passes it to the Trasmit_Protocol_Handler. The Transmit_Protocol_Handler handles the processing for this layer and forwards the message to the next lower layer.

See also:
Protocol Layer Design Pattern

Implements Protocol_Layer.

Definition at line 31 of file DataLink_Layer.cpp.

00032 {
00033     m_transmit_Protocol_Handler.Handle_Transmit_Request((Datagram *)p_Packet);
00034 }

void Datalink_Layer::Handle_Receive Protocol_Packetp_Packet  ) [virtual]
 

This method handles the receive side processing.

The method receives a Protocol_Packet from the lower layer and passes it to the Receive_Protocol_Handler. The Receive_Protocol_Handler handles the processing for this layer and forwards the message to the next upper layer.

See also:
Protocol Layer Design Pattern

Implements Protocol_Layer.

Definition at line 43 of file DataLink_Layer.cpp.

00044 {
00045     m_receive_Protocol_Handler.Handle_Received_Packet((Datagram *)p_Packet);
00046 }


The documentation for this class was generated from the following files:
Generated on Sun Feb 13 21:30:27 2005 for Object Oriented Design Examples by doxygen 1.3.4
 Home   What's New   EventStudio 2.5   Real-time Mantra   Thought Projects   Contact Us
Copyright © 2000-2005 EventHelix.com Inc. All Rights Reserved.