2022-04-05 21:48:07 +00:00
|
|
|
#ifndef DOMAIN_INSTANCE_H
|
|
|
|
#define DOMAIN_INSTANCE_H
|
|
|
|
|
|
|
|
#include "bus.h"
|
|
|
|
#include "component.h"
|
|
|
|
#include "instanceattribute.h"
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace domain {
|
|
|
|
|
2022-05-08 13:47:47 +00:00
|
|
|
class BusInstance
|
2022-04-05 21:48:07 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::string name;
|
|
|
|
std::pair<int, int> position;
|
|
|
|
|
|
|
|
Bus bus;
|
|
|
|
int size;
|
|
|
|
|
|
|
|
BusInstance(std::string name, std::pair<int, int> position, Bus bus, int size);
|
|
|
|
|
2022-05-08 13:47:47 +00:00
|
|
|
virtual ~BusInstance() = default;
|
2022-04-05 21:48:07 +00:00
|
|
|
};
|
|
|
|
|
2022-05-08 13:47:47 +00:00
|
|
|
class ComponentInstance
|
2022-04-05 21:48:07 +00:00
|
|
|
{
|
|
|
|
public:
|
2022-05-08 13:47:47 +00:00
|
|
|
std::string name;
|
|
|
|
std::vector<InstanceAttribute> attributes;
|
|
|
|
std::pair<int, int> position;
|
|
|
|
|
2022-04-05 21:48:07 +00:00
|
|
|
Component component;
|
|
|
|
|
2022-05-07 12:19:43 +00:00
|
|
|
ComponentInstance(std::string name, std::vector<InstanceAttribute> attributes, std::pair<int, int> position, Component component);
|
2022-04-05 21:48:07 +00:00
|
|
|
|
2022-05-08 13:47:47 +00:00
|
|
|
virtual ~ComponentInstance() = default;
|
2022-04-05 21:48:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace domain
|
|
|
|
|
|
|
|
#endif // DOMAIN_INSTANCE_H
|