Version: 8.3.0
YACS::ENGINE::Port Class Reference

Base class for all ports. More...

#include <Port.hxx>

Inheritance diagram for YACS::ENGINE::Port:
Collaboration diagram for YACS::ENGINE::Port:

Public Member Functions

virtual ~Port ()
 
NodegetNode () const
 
virtual std::string getNameOfTypeOfCurrentInstance () const
 
int getNumId () const
 
virtual std::string typeName ()
 
void modified ()
 

Protected Member Functions

 Port (Node *node)
 
 Port (const Port &other, Node *newHelder)
 

Protected Attributes

Node_node
 
int _id
 

Static Protected Attributes

static int _total = 0
 
static const char NAME [] ="Port"
 

Detailed Description

Base class for all ports.

Not instanciable class that factorizes all basic data and behaviours relative to the in and out interfaces of all nodes. End-user should neither instanciate a sub-class of 'Port' nor call other methods than accessor.

Definition at line 42 of file Port.hxx.

Constructor & Destructor Documentation

Port::~Port ( )
virtual

Definition at line 44 of file Port.cxx.

45 {
46 }
Port::Port ( Node node)
protected

Definition at line 34 of file Port.cxx.

References _id, and _total.

34  :_node(node)
35 {
36  _id = _total++;
37 }
Port::Port ( const Port other,
Node newHelder 
)
protected

Definition at line 39 of file Port.cxx.

References _id, and _total.

39  :_node(newHelder)
40 {
41  _id = _total++;
42 }

Member Function Documentation

Node* YACS::ENGINE::Port::getNode ( ) const
inline

Definition at line 46 of file Port.hxx.

Referenced by YACS::ENGINE::CollectorSwOutPort::addPotentialProducerForMaster(), YACS::ENGINE::Bloc::Bloc(), YACS::ENGINE::OutPort::calculateHistoryOfLinkWith(), YACS::HMI::LinkMatrix::cellFrom(), YACS::HMI::LinkMatrix::cellTo(), YACS::ENGINE::ForLoop::checkCFLinks(), YACS::ENGINE::DynParaLoop::checkCFLinks(), YACS::ENGINE::ComposedNode::checkCFLinks(), YACS::ENGINE::Loop::checkCFLinks(), YACS::ENGINE::StaticDefinedComposedNode::checkControlDependancy(), YACS::ENGINE::Bloc::checkControlDependancy(), YACS::ENGINE::DynParaLoop::cloneAndPlaceNodesCoherently(), YACS::HMI::EditionInputPort::EditionInputPort(), YACS::HMI::EditionOutputPort::EditionOutputPort(), YACS::ENGINE::ConditionInputPort::edNotifyDereferencedBy(), YACS::ENGINE::ConditionInputPort::edNotifyReferencedBy(), YACS::HMI::SchemaInPortItem::flags(), YACS::HMI::SchemaOutPortItem::flags(), YACS::ENGINE::ForEachLoop::getFEDeltaBetween(), YACS::ENGINE::CollectorSwOutPort::getHumanReprOfIncompleteCases(), YACS::ENGINE::OptimizerLoop::initInterceptors(), YACS::HMI::SubjectComposedNode::loadLinks(), YACS::HMI::InPortMenu::popupMenu(), YACS::HMI::OutPortMenu::popupMenu(), YACS::ENGINE::InputStudyPort::putDataInStudy(), YACS::HMI::SubjectNode::restoreLinks(), YACS::HMI::SubjectNode::saveLinks(), YACS::HMI::SchemaInPortItem::SchemaInPortItem(), YACS::HMI::GuiExecutor::setInPortValue(), YACS::HMI::SubjectDataPort::setName(), YACS::HMI::SubjectInputPort::SubjectInputPort(), YACS::HMI::SubjectOutputPort::SubjectOutputPort(), YACS::HMI::SchemaInPortItem::update(), YACS::ENGINE::VisitorSaveSchema::writeSimpleDataLinks(), YACS::ENGINE::VisitorSaveSchema::writeSimpleStreamLinks(), and YACS::HMI::SubjectDataPort::~SubjectDataPort().

46 { return _node; }
int YACS::ENGINE::Port::getNumId ( ) const
inline

Member Data Documentation

int YACS::ENGINE::Port::_id
protected

Definition at line 56 of file Port.hxx.

Referenced by Port().

int Port::_total = 0
staticprotected

Definition at line 57 of file Port.hxx.

Referenced by Port().

const char Port::NAME ="Port"
staticprotected

Definition at line 58 of file Port.hxx.

Referenced by getNameOfTypeOfCurrentInstance().


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