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