next up previous contents index
Next: Scalable Real-Time Engine: SRTEngine Up: Coupled DEVS: Coupled Previous: Sub-components Related   Contents   Index

Couplings Related

Related to couplings, there are three constructing functions, one each for the external input couplings (EICs), the internal couplings (ITCs), and the external output couplings (EOCs).
    void AddCP(InputPort* spt, InputPort* dpt); // EIC
    void AddCP(OutputPort* spt, InputPort* dpt); // ITC
    void AddCP(OutputPort* spt, OutputPort* dpt);// EOC

In addition, we can print out the coupling information by calling PrintEICs(), PrintITCs(), PrintEOCs(), and PrintCouplings() for printing EICs, ITCs, and EOCs, and all of them, respectively.

    void PrintEICs() const;
    void PrintITCs() const;
    void PrintEOCs() const;
    void PrintCouplings() const;
The corresponding removing functions are as follows.
    void RemoveCP(InputPort* spt, InputPort* dpt); // EIC
    void RemoveCP(OutputPort* spt, InputPort* dpt); // ITC
    void RemoveCP(OutputPort* spt, OutputPort* dpt);// EOC


MHHwang 2007-05-07