//=========================================================================
GBlackBoxModel::GBlackBoxModel()
{
+ _isExecutable = false;
}
//=========================================================================
}
//=========================================================================
+
+ std::string GBlackBoxModel::getBBTKPackage()
+ {
+ return _bbtkPackage;
+ }
+
+ //=========================================================================
+
+ void GBlackBoxModel::setBBTKPackage(std::string obpackage)
+ {
+ _bbtkPackage = obpackage;
+ }
+
+ //=========================================================================
+
+ bool GBlackBoxModel::isExecutable()
+ {
+ return _isExecutable;
+ }
+
+ //=========================================================================
+
+ void GBlackBoxModel::setExecutable(bool executable)
+ {
+ _isExecutable = executable;
+ }
+
+ //=========================================================================
+
+ std::string GBlackBoxModel::getStatusText()
+ {
+ std::string temp = "";
+ temp+=_bbtkType;
+ temp+=":";
+ temp+=_bbtkPackage;
+ return temp;
+ }
+
+ //=========================================================================
+
+ std::vector<GPortModel*> GBlackBoxModel::getInputPorts()
+ {
+ return _inputs;
+ }
+
+ //=========================================================================
+
+ std::vector<GPortModel*> GBlackBoxModel::getOutputPorts()
+ {
+ return _outputs;
+ }
+
+ //=========================================================================
+
+ void GBlackBoxModel::setValueToInputPort(int pos,std::string value)
+ {
+ _inputs[pos]->setValue(value);
+ }
+ //=========================================================================
} // EO namespace bbtk