blob: 39308b670cdf25b47a77a112ba39c063f13f6f0b [file]
#ifndef PINGPONGPROTOCOL_HH
#define PINGPONGPROTOCOL_HH
#include "umlrtoutsignal.hh"
#include "umlrtprotocol.hh"
#include "umlrtsignal.hh"
struct UMLRTCommsPort;
namespace PingPongProtocol
{
class Base : public UMLRTProtocol
{
public:
Base( const UMLRTCommsPort * & srcPort );
UMLRTOutSignal ping( int param ) const;
};
class Conj : public UMLRTProtocol
{
public:
Conj( const UMLRTCommsPort * & srcPort );
UMLRTOutSignal pong( int param ) const;
};
enum SignalId
{
signal_pong = UMLRTSignal::FIRST_PROTOCOL_SIGNAL_ID,
signal_ping
};
};
#endif