Go to the documentation of this file.
75 :
Component(name), sourceBus_(NULL), destinationBus_(NULL) {
76 const string procName =
"Bridge::Bridge";
108 :
Component(state), sourceBus_(NULL), destinationBus_(NULL) {
116 TXT_BRIDGE_EXISTS_BY_SAME_NAME);
118 string procName =
"Bridge::Bridge";
148 string procName =
"Bridge::setName";
216 if (oldSource != NULL) {
221 if (oldDestination != NULL) {
265 const string procName =
"Bridge::loadState";
278 string destinationBusName =
286 source = busNav.
item(sourceBusName);
287 destination = busNav.
item(destinationBusName);
290 format errorMsg = textGenerator.
text(
297 if (tester.
canBridge(*source, *destination)) {
301 *source, *destination, tester);
328 const Bus& sourceBus,
329 const Bus& destinationBus) {
336 for (
int i = 0; i < bridgeNav.
count(); i++) {
360 otherEnd = otherEnd->
nextBus();
408 const Bus* observable = &bus;
411 set<const Bus*> busesInChain;
412 busesInChain.insert(observable);
415 busesInChain.insert(observable);
422 for (
int i = 0; i < bridgeNav.
count(); i++) {
virtual ObjectState * saveState() const
static const std::string OSKEY_SOURCE_BUS
ObjectState attribute key for source bus name.
void internalUnsetMachine()
virtual void setName(const std::string &name)
virtual void setDestinationBridge(Bridge &bridge)
Bus * destinationBus() const
virtual TCEString name() const
std::string stringAttribute(const std::string &name) const
Bus * destinationBus_
Destination bus.
virtual bool isRegistered() const
virtual void loadState(const ObjectState *state)
static std::string bridgingError(const TTAMachine::Bus &sourceBus, const TTAMachine::Bus &destinationBus, const MachineTester &tester)
virtual void setSourceBridge(Bridge &bridge)
virtual void ensureRegistration(const Component &component) const
virtual void unsetMachine()
bool sourcePrevious_
Indicates which of the buses is previous and next.
virtual ObjectState * saveState() const
virtual bool canWrite(const Bus &bus) const
virtual bool canBridge(const TTAMachine::Bus &source, const TTAMachine::Bus &destination)
virtual boost::format text(int textId)
void setName(const std::string &name)
Bridge(const std::string &name, Bus &sourceBus, Bus &destinationBus)
virtual bool hasPreviousBus() const
void internalSetMachine(Machine &machine)
#define assert(condition)
virtual bool canRead(const Bus &bus) const
void setSourceAndDestination(Bus &sourceBus, Bus &destination)
virtual BridgeNavigator bridgeNavigator() const
virtual void clearSourceBridge(Bridge &bridge)
MachineTester & machineTester() const
bool hasItem(const std::string &name) const
virtual void loadState(const ObjectState *state)
virtual void deleteBridge(Bridge &bridge)
std::string errorMessage() const
Bus * previousBus() const
virtual void clearDestinationBridge(Bridge &bridge)
virtual void addBridge(Bridge &bridge)
Bus * sourceBus_
Source bus.
virtual bool hasNextBus() const
static void setFirstOfChain(const Bus &bus)
static const std::string OSNAME_BRIDGE
ObjectState name for bridge.
virtual Bus * previousBus() const
virtual Machine * machine() const
virtual BusNavigator busNavigator() const
static const std::string OSKEY_DESTINATION_BUS
ObjectState attribute key for destination bus name.
void adjustChainDirection(const Bus &sourceBus, const Bus &destinationBus)
ComponentType * item(int index) const
virtual Bus * nextBus() const
virtual void setMachine(Machine &mach)
virtual void setName(const std::string &name)
void setAttribute(const std::string &name, const std::string &value)
@ TXT_BRIDGE_UNKNOWN_SRC_OR_DST