Go to the documentation of this file.
34 #ifndef TTA_SEGMENT_HH
35 #define TTA_SEGMENT_HH
61 std::string
name()
const;
void setName(const std::string &name)
Segment * destinationSegment_
Destination segment.
void attachSocket(Socket &socket)
std::vector< const Connection * > ConnectionTable
Vector of Connection pointers.
Segment * destinationSegment() const
static const std::string OSKEY_NAME
ObjectState attribute key for segment name.
ConnectionTable connections_
Contains all the connections to sockets.
void moveAfter(Segment &segment)
virtual void loadState(const ObjectState *state)
static const std::string OSNAME_SEGMENT
ObjectState name for Segment.
void detachSocket(Socket &socket)
int connectionCount() const
bool isConnectedTo(const Socket &socket) const
Segment * sourceSegment_
Source segment.
const Connection & connection(const Socket &socket) const
bool hasSourceSegment() const
virtual ObjectState * saveState() const
Segment * sourceSegment() const
bool hasDestinationSegment() const
void moveBefore(Segment &segment)
Bus * parent_
The parent bus.
std::string name_
Name of the segment.
static const std::string OSKEY_DESTINATION
ObjectState attribute key for destination segment name.
Segment(const std::string &name, Bus &parent)
void removeConnection(const Connection *connection)
void loadStateWithoutReferences(const ObjectState *state)