//Includes same project
#include "GlobalConstants.h"
-#include "GObjectModel.h"
-#include "GPortModel.h"
+#include "GBoxModel.h"
//Includes creaMaracasVisu
namespace bbtk
{
- class GPortModel;
-
- class GBlackBoxModel : public GObjectModel
- {
+ class GBlackBoxModel : public GBoxModel
+ {
public:
~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);
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);
-
- void updatePorts();
-
private:
//Private Attributes
- std::vector<GPortModel*> _inputs;
- std::vector<GPortModel*> _outputs;
bool _isExecutable;
//Private Methods