]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.cxx
std::string vs wxString
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GBlackBoxModel.cxx
index e58e73aebfef1f301a2fd0023bdfec9728feba0d..f35cda172d483c4e08a45fe2fae2e09c065fccfb 100644 (file)
@@ -43,6 +43,7 @@ namespace bbtk
        //=========================================================================
        GBlackBoxModel::GBlackBoxModel()
        {               
+               _isExecutable = false;
        }
 
        //=========================================================================
@@ -109,7 +110,6 @@ namespace bbtk
        }
        
        //=========================================================================
-
        
        std::string GBlackBoxModel::getBBTKPackage()
        {
@@ -125,6 +125,20 @@ namespace bbtk
 
        //=========================================================================
        
+       bool GBlackBoxModel::isExecutable()
+       {
+               return _isExecutable;
+       }
+
+       //=========================================================================
+
+       void GBlackBoxModel::setExecutable(bool executable)
+       {
+               _isExecutable = executable;
+       }
+
+       //=========================================================================
+       
        std::string GBlackBoxModel::getStatusText()
        {
                std::string temp = "";
@@ -136,6 +150,27 @@ namespace bbtk
 
        //=========================================================================
 
+       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