blob: 8cf100f66a17abaf3338f80c5fb88dd9381bdb8a [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() const;
};
class Conj : public UMLRTProtocol
{
public:
Conj( const UMLRTCommsPort * & srcPort );
UMLRTOutSignal pong() const;
};
enum SignalId
{
signal_pong = UMLRTSignal::FIRST_PROTOCOL_SIGNAL_ID,
signal_ping
};
};
#endif