Socket(const std::string &name)
PortTable ports_
Contains all connections to ports.
const Connection & connection(const Segment &bus) const
std::set< Bus * > connectedBuses()
Port * port(int index) const
void attachPort(Port &port)
virtual TCEString name() const
static const std::string OSVALUE_OUTPUT
ObjectState attribute value for output direction.
std::vector< Port * > PortTable
Table of port connections.
@ OUTPUT
Data goes from port to bus.
Direction direction_
Direction of the socket.
virtual void loadState(const ObjectState *state)
Segment * segment(int index) const
Direction direction() const
virtual ObjectState * saveState() const
std::string dataPortWidth_
Dataport width.
const std::string & dataPortWidth() const
void detachPort(const Port &port)
void attachBus(Segment &bus)
static const std::string OSVALUE_UNKNOWN
ObjectState attribute value for unknown direction.
virtual void unsetMachine()
virtual void setMachine(Machine &mach)
virtual void setName(const std::string &name)
void removeConnection(const Connection *connection)
void setDirection(Direction direction)
bool isConnectedTo(const Bus &bus) const
static const std::string OSNAME_SOCKET
ObjectState name for socket.
void detachBus(Segment &bus)
static const std::string OSKEY_DIRECTION
ObjectState attribute key for socket direction.
ConnectionTable busses_
Contains all connections to busses.
@ UNKNOWN
Unknown direction.
bool hasDataPortWidth() const
std::vector< const Connection * > ConnectionTable
Table of Connection pointers.
static const std::string OSVALUE_INPUT
ObjectState attribute value for input direction.
Socket & operator=(const Socket &)
Assingment forbidden.
void setDataPortWidth(const std::string &width)
@ INPUT
Data goes from bus to port.