X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkConnection.cxx;h=bc6b3b1c001561de5335fb3311f7d027118dea5f;hb=6d0969aa445cb7678a95eafe551cfa70f09af95d;hp=51538159f28d03e9d3981c014f53104e1ecbde7b;hpb=3928b4ad06b5b5fd142f696f58a7828d064e2883;p=bbtk.git diff --git a/kernel/src/bbtkConnection.cxx b/kernel/src/bbtkConnection.cxx index 5153815..bc6b3b1 100644 --- a/kernel/src/bbtkConnection.cxx +++ b/kernel/src/bbtkConnection.cxx @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbtkConnection.cxx,v $ Language: C++ - Date: $Date: 2008/12/08 12:54:19 $ - Version: $Revision: 1.16 $ + Date: $Date: 2008/12/11 09:50:35 $ + Version: $Revision: 1.19 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -338,48 +338,41 @@ Connection::Connection(BlackBox::Pointer from, const std::string& output, //================================================================== //================================================================== - /// Backward Update - void Connection::BackwardUpdate() + /// Recursive execution + void Connection::RecursiveExecute() { - bbtkDebugMessage("process",5, - "===> Connection::BackwardUpdate() [" + bbtkDebugMessage("process",4, + "===> Connection::RecursiveExecute() [" <bbBackwardUpdate(GetThisPointer()); + mFrom->bbRecursiveExecute(GetThisPointer()); TransferData(); // Transfer status IOStatus s = MODIFIED; if ( mFrom->bbGetOutputConnector(mOutput).GetStatus() == OUTOFDATE) - s = OUTOFDATE, + { + s = OUTOFDATE; + } mTo->bbGetInputConnector(mInput).SetStatus(s); - - bbtkDebugMessage("process",5, - "<=== Connection::BackwardUpdate() [" + + bbtkDebugMessage("process",4, + " --> '"<bbGetName()<<"."<bbGetInputConnector(mInput)<<"] " + <<"' new status '" + <bbForwardUpdate(this); - - bbtkDebugDecTab("process",2); - } - //================================================================== - */ //================================================================== /// Transfers the data from the source output to the target input @@ -493,37 +486,20 @@ Connection::Connection(BlackBox::Pointer from, const std::string& output, } //================================================================== - - /* - //================================================================== - /// Modified - void Connection::SetModifiedStatus() - { - bbtkDebugMessage("modified",2, - "==> Connection::SetModifiedStatus() [" - <bbSetModifiedStatus(); - - mTo->bbSetModifiedStatus( mTo->bbGetInputConnectorMap().find(mInput)->second ); - - - } - //================================================================== - */ + //================================================================== /// From.Output change propagation void Connection::OnOutputChange(bbtk::BlackBox::Pointer, const std::string&, IOStatus status) { bbtkDebugMessage("change",2, - "==> Connection::OnOutputChange("< Connection::OnOutputChange(" + <bbGetInputConnectorMap().find("In")->second; - mAdaptor->bbSetStatusAndPropagate(ac,status); + BlackBoxInputConnector* ac = mAdaptor->bbGetInputConnectorMap().find("In")->second; + mAdaptor->bbSetStatusAndPropagate(ac,status); } mTo->bbSetStatusAndPropagate( mTo->bbGetInputConnectorMap().find(mInput)->second, status);