]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.cxx
std::string vs wxString
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GBlackBoxModel.cxx
index bdaf53d5bdd86ff03422a2feb74dec78965c6c83..f35cda172d483c4e08a45fe2fae2e09c065fccfb 100644 (file)
@@ -43,6 +43,7 @@ namespace bbtk
        //=========================================================================
        GBlackBoxModel::GBlackBoxModel()
        {               
+               _isExecutable = false;
        }
 
        //=========================================================================
@@ -109,7 +110,66 @@ namespace bbtk
        }
        
        //=========================================================================
+       
+       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