=========================================================================*/
/* ---------------------------------------------------------------------
=========================================================================*/
/* ---------------------------------------------------------------------
static bool bbmgSomeBoxExecuting = false;
static bool bbmgFreezeExecution = false;
static std::set<BlackBox::WeakPointer> bbmgExecutionList;
static bool bbmgSomeBoxExecuting = false;
static bool bbmgFreezeExecution = false;
static std::set<BlackBox::WeakPointer> bbmgExecutionList;
bbGetOutputConnectorMap()[o->second->GetName()]
= new BlackBoxOutputConnector(GetThisPointer<BlackBox>());
}
bbGetOutputConnectorMap()[o->second->GetName()]
= new BlackBoxOutputConnector(GetThisPointer<BlackBox>());
}
//=========================================================================
bool BlackBox::bbBoxProcessModeIsReactive() const
{
//=========================================================================
bool BlackBox::bbBoxProcessModeIsReactive() const
{
}
//=========================================================================
//=========================================================================
bool BlackBox::bbBoxProcessModeIsAlways() const
{
}
//=========================================================================
//=========================================================================
bool BlackBox::bbBoxProcessModeIsAlways() const
{
OutputConnectorMapType::iterator i;
for ( i = bbGetOutputConnectorMap().begin();
i != bbGetOutputConnectorMap().end(); ++i)
OutputConnectorMapType::iterator i;
for ( i = bbGetOutputConnectorMap().begin();
i != bbGetOutputConnectorMap().end(); ++i)
bbtkBlackBoxDebugMessage("change",5,
"<= BlackBox::bbSignalOutputModification()"
<<std::endl);
bbtkBlackBoxDebugMessage("change",5,
"<= BlackBox::bbSignalOutputModification()"
<<std::endl);
}
//=========================================================================
//=========================================================================
}
//=========================================================================
//=========================================================================
}
//=========================================================================
//=========================================================================
}
//=========================================================================
//=========================================================================
bbtkBlackBoxDebugMessage("change",5,
"<= BlackBox::bbSignalOutputModification(vector of outputs)"
<<std::endl);
bbtkBlackBoxDebugMessage("change",5,
"<= BlackBox::bbSignalOutputModification(vector of outputs)"
<<std::endl);
bbtkBlackBoxDebugMessage("process",4,
"<= BlackBox::bbUpdateInputs()"
bbtkBlackBoxDebugMessage("process",4,
"<= BlackBox::bbUpdateInputs()"
bbtkBlackBoxDebugMessage("process",4,
"<= BlackBox::bbComputePostProcessStatus()"
bbtkBlackBoxDebugMessage("process",4,
"<= BlackBox::bbComputePostProcessStatus()"
InputConnectorMapType::iterator i = bbGetInputConnectorMap().find(name);
if (i==bbGetInputConnectorMap().end())
{
InputConnectorMapType::iterator i = bbGetInputConnectorMap().find(name);
if (i==bbGetInputConnectorMap().end())
{
i->second->SetConnection(c);
// The input *MUST* be set OUTOFDATE to update its input on next execution
bbSetStatusAndPropagate(i->second,OUTOFDATE);
i->second->SetConnection(c);
// The input *MUST* be set OUTOFDATE to update its input on next execution
bbSetStatusAndPropagate(i->second,OUTOFDATE);
bbtkBlackBoxDebugMessage("connection",2,
"<== BlackBox::bbConnectInput(\""
<<name<<"\","<<c->GetFullName()<<")"
bbtkBlackBoxDebugMessage("connection",2,
"<== BlackBox::bbConnectInput(\""
<<name<<"\","<<c->GetFullName()<<")"
OutputConnectorMapType::iterator i = bbGetOutputConnectorMap().find(name);
if (i==bbGetOutputConnectorMap().end())
{
OutputConnectorMapType::iterator i = bbGetOutputConnectorMap().find(name);
if (i==bbGetOutputConnectorMap().end())
{
bbtkBlackBoxDebugMessage("connection",2,
"<== BlackBox::bbConnectOutput(\""<<name<<"\","
<<c->GetFullName()<<")"
bbtkBlackBoxDebugMessage("connection",2,
"<== BlackBox::bbConnectOutput(\""<<name<<"\","
<<c->GetFullName()<<")"
bbtkBlackBoxDebugMessage("connection",2,
"==> BlackBox::bbDisconnectInput(\""<<name
<<"\","<<c->GetFullName()<<")"
bbtkBlackBoxDebugMessage("connection",2,
"==> BlackBox::bbDisconnectInput(\""<<name
<<"\","<<c->GetFullName()<<")"