OpenASIP
2.0
|
#include <MachineTestReporter.hh>
Static Public Member Functions | |
static std::string | socketSegmentConnectionError (const TTAMachine::Socket &socket, const TTAMachine::Segment &segment, const MachineTester &tester) |
static std::string | socketPortConnectionError (const TTAMachine::Socket &socket, const TTAMachine::Port &port, const MachineTester &tester) |
static std::string | bridgingError (const TTAMachine::Bus &sourceBus, const TTAMachine::Bus &destinationBus, const MachineTester &tester) |
static std::string | socketDirectionSettingError (const TTAMachine::Socket &socket, TTAMachine::Socket::Direction, const MachineTester &tester) |
Creates string error messages according to the error stated by MachineTester.
Definition at line 45 of file MachineTestReporter.hh.
|
static |
Generates a general error message of the error that occurred when tried to bridge the given buses.
sourceBus | The source bus. |
destinationBus | The destination bus. |
tester | MachineTester that was used to check if the buses can be joined by a bridge. |
Definition at line 219 of file MachineTestReporter.cc.
References MachineTester::branchedBus(), MachineTester::connectionExists(), MachineTester::illegalRegistration(), MachineTester::loop(), TTAMachine::Component::name(), and Texts::TextGenerator::text().
Referenced by TTAMachine::Bridge::Bridge(), and TTAMachine::Bridge::loadState().
|
static |
Generates a general error message of the reason why the direction of the given socket can not be set.
socket | The socket. |
direction | The direction that was tried to set. |
tester | The MachineTester used to check if the direction can be set. |
Definition at line 299 of file MachineTestReporter.cc.
References assert, MachineTester::forbiddenSocketDirection(), TTAMachine::Socket::INPUT, TTAMachine::Port::name(), TTAMachine::Component::name(), MachineTester::noConnections(), TTAMachine::Socket::OUTPUT, TTAMachine::Port::parentUnit(), MachineTester::sameDirSocketConnection(), Texts::TextGenerator::text(), and MachineTester::unknownSocketDirection().
Referenced by SocketDialog::onDirection(), and TTAMachine::Socket::setDirection().
|
static |
Generates a general error message of the error that occurred when tried to attach a socket to a port.
socket | The socket that was tried to be connected. |
port | The port to which the socket was tried to be connected. |
tester | MachineTester that was used to check if the connection can be made. |
Definition at line 150 of file MachineTestReporter.cc.
References MachineTester::connectionExists(), MachineTester::illegalRegistration(), MachineTester::maxConnections(), TTAMachine::Port::name(), TTAMachine::Component::name(), TTAMachine::Port::parentUnit(), MachineTester::registerFilePortAlreadyConnected(), Texts::TextGenerator::text(), and MachineTester::wrongSocketDirection().
Referenced by TTAMachine::Port::attachSocket().
|
static |
Generates a general error message of the error that occurred when tried to attach a socket to a segment.
socket | The socket that was tried to be connected. |
segment | The segment to which the socket was tried to be connected. |
tester | MachineTester that was used to check if the connection can be made. |
Definition at line 55 of file MachineTestReporter.cc.
References assert, MachineTester::connectionExists(), MachineTester::forbiddenSocketDirection(), MachineTester::illegalRegistration(), TTAMachine::Socket::INPUT, TTAMachine::Port::name(), TTAMachine::Segment::name(), TTAMachine::Component::name(), TTAMachine::Socket::OUTPUT, TTAMachine::Segment::parentBus(), TTAMachine::Port::parentUnit(), MachineTester::sameDirSocketConnection(), and Texts::TextGenerator::text().
Referenced by TTAMachine::Socket::attachBus(), TTAMachine::Segment::attachSocket(), and SocketDialog::onAttach().