]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.h
The actual version works with complex box automatic generated from selected boxes...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GBlackBoxModel.h
index 04ae668d17ad68a72b1836274a06ad6e7e197d29..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,14 +66,6 @@ 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);
 
@@ -86,22 +75,18 @@ namespace bbtk
                bool isExecutable();
                void setExecutable(bool executable);
 
-               std::vector<GPortModel*> getInputPorts();
-               std::vector<GPortModel*> getOutputPorts();
-
                void setValueToInputPort(int pos,std::string value);
                void setValueToInput(std::string name,std::string value);
 
-               GPortModel* getInputPort(std::string name);
-               GPortModel* getOutputPort(std::string name);
+               std::string getValueInputPort(int pos);
+               std::string getValueInput(std::string name);
 
-               void updatePorts();
+               std::vector<int> getConnectedInputs();
+               std::vector<int> getConnectedOutputs();
 
        private:
 
                //Private Attributes
-               std::vector<GPortModel*> _inputs;
-               std::vector<GPortModel*> _outputs;
                bool _isExecutable;
 
                //Private Methods