]> 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 82214a4ad29c4818c145a6d4ca81b205ca09de35..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,27 +66,27 @@ 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:
 
                //Private Attributes
-               std::vector<GPortModel*> _inputs;
-               std::vector<GPortModel*> _outputs;
                bool _isExecutable;
 
                //Private Methods