]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h
*** empty log message ***
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GBlackBoxModel.h
index 160ac37cd32a7ba3ce023333fdb8f6769bd30203..a45910235a0d3fd33297bff3310c030f343be1b9 100644 (file)
@@ -45,8 +45,7 @@ Version:   $Revision$
 
 //Includes same project
 #include "GlobalConstants.h"
-#include "GObjectModel.h"
-#include "GPortModel.h"
+#include "GBoxModel.h"
 
 //Includes creaMaracasVisu
 
@@ -57,10 +56,8 @@ Version:   $Revision$
 namespace bbtk
 {
 
-       class GPortModel;
-
-       class GBlackBoxModel : public GObjectModel 
-       {
+       class GBlackBoxModel : public GBoxModel
+       {
 
        public: 
 
@@ -69,24 +66,35 @@ namespace bbtk
                ~GBlackBoxModel();
                
                //Public methods                
-               virtual void setInicPoint(double& x, double& y, double& z);
-               void addInputPort(GPortModel *inputport);
-               void addOutputPort(GPortModel *outputport);
-               int getNumInputPorts();
-               int getNumOutputPorts();
-               virtual void move(double xx,double yy,double zz);
-               GPortModel* getStartOutputPort();
+               std::string getBBTKPackage();
+               void setBBTKPackage(std::string obpackage);
+
+               virtual std::string getStatusText();
+               virtual void save(std::string &content);
+
+               bool isExecutable();
+               void setExecutable(bool executable);
 
+               void setValueToInputPort(int pos,std::string value);
+               void setValueToInput(std::string name,std::string value);
+
+               std::string getValueInputPort(int pos);
+               std::string getValueInput(std::string name);
+
+               std::vector<int> getConnectedInputs();
+               std::vector<int> getConnectedOutputs();
 
        private:
 
-               //Attributes
-               std::vector<GPortModel*> _inputs;
-               std::vector<GPortModel*> _outputs;
+               //Private Attributes
+               bool _isExecutable;
 
                //Private Methods
 
        protected:
+               //Protected Attributes
+               std::string _bbtkPackage;
+
                //Protected methods
                
        };