DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
Diades::Sdmdl::Port Class Reference

#include <Port.hh>

Public Types

enum  Type { Input, Output }
 

Public Member Functions

 Port ()
 
 Port (const string &label, Type type)
 
 Port (const string &label, Type type, bool observable)
 
virtual ~Port ()
 
bool isObservable () const
 
const string & label () const
 
Type type () const
 
bool operator== (const Port &port) const
 
bool operator!= (const Port &port) const
 

Private Attributes

string labl
 
Type _type
 
bool _obs
 

Friends

ostream & operator<< (ostream &os, const Port &port)
 

Detailed Description

Definition at line 27 of file Port.hh.

Member Enumeration Documentation

◆ Type

Enumerator
Input 
Output 

Definition at line 32 of file Port.hh.

Constructor & Destructor Documentation

◆ Port() [1/3]

Diades::Sdmdl::Port::Port ( )
inline

Definition at line 40 of file Port.hh.

◆ Port() [2/3]

Diades::Sdmdl::Port::Port ( const string &  label,
Type  type 
)
inline

Definition at line 41 of file Port.hh.

References require.

◆ Port() [3/3]

Diades::Sdmdl::Port::Port ( const string &  label,
Type  type,
bool  observable 
)
inline

Definition at line 43 of file Port.hh.

References require.

◆ ~Port()

virtual Diades::Sdmdl::Port::~Port ( )
inlinevirtual

Definition at line 45 of file Port.hh.

Member Function Documentation

◆ isObservable()

bool Diades::Sdmdl::Port::isObservable ( ) const
inline

Definition at line 46 of file Port.hh.

Referenced by Diades::Sdmdl::Event::isObservable().

◆ label()

const string& Diades::Sdmdl::Port::label ( ) const
inline

Definition at line 47 of file Port.hh.

Referenced by Diades::Sdmdl::Event::label().

◆ operator!=()

bool Diades::Sdmdl::Port::operator!= ( const Port port) const
inline

Definition at line 51 of file Port.hh.

◆ operator==()

bool Diades::Sdmdl::Port::operator== ( const Port port) const
inline

Definition at line 50 of file Port.hh.

◆ type()

Type Diades::Sdmdl::Port::type ( ) const
inline

Definition at line 48 of file Port.hh.

References Diades::Utils::operator<<().

Referenced by Diades::Sdmdl::Event::type().

Friends And Related Function Documentation

◆ operator<<

ostream& operator<< ( ostream &  os,
const Port port 
)
friend

Member Data Documentation

◆ _obs

bool Diades::Sdmdl::Port::_obs
private

Definition at line 37 of file Port.hh.

◆ _type

Type Diades::Sdmdl::Port::_type
private

Definition at line 36 of file Port.hh.

◆ labl

string Diades::Sdmdl::Port::labl
private

Type of events

Definition at line 35 of file Port.hh.


The documentation for this class was generated from the following file: