Go to the documentation of this file.
144 if (inputSocket == &socket || outputSocket == &socket ||
145 firstUnconnected == &socket || secondUnconnected == &socket) {
150 if ((inputSocket != NULL && socket.
direction() == Socket::INPUT) ||
151 (outputSocket != NULL && socket.
direction() == Socket::OUTPUT)) {
168 if (socket.
direction() == Socket::INPUT) {
176 if (parentRf != NULL) {
177 for (
int i = 0; i < parentRf->
portCount(); i++) {
213 if (&source == &destination) {
221 }
else if (destination.
canWrite(source)) {
233 bool adjacent =
false;
235 if (source.
nextBus() == &destination) {
252 if (source.
nextBus() != &destination &&
259 if (destination.
nextBus() != &source &&
314 if (name.length() == 0) {
318 for (
unsigned int i = 0; i < name.length(); i++) {
319 char character = name[i];
321 if (!isalpha(character)) {
325 if (!isalpha(character) && !isdigit(character) &&
326 character !=
'_' && character !=
':') {
452 if (direction == Socket::INPUT) {
454 }
else if (direction == Socket::OUTPUT) {
472 if (direction == Socket::INPUT) {
523 if (&bus1 == &bus2) {
527 const Bus* bus = &bus1;
560 for (
int i = 0; i < socket.
portCount(); i++) {
562 if (direction == Socket::INPUT && port->
inputSocket() != NULL) {
565 }
else if (direction == Socket::OUTPUT &&
572 direction == Socket::INPUT) {
virtual Socket * unconnectedSocket(int index) const
virtual bool canConnect(const TTAMachine::Socket &socket, const TTAMachine::Segment &segment)
bool noConnections_
Indicates if the reason for failure when tried to set socket direction was that the socket has no seg...
virtual Socket * inputSocket() const
Port * port(int index) const
TTAMachine::Machine * machine
the architecture definition of the estimated processor
MachineTester(const TTAMachine::Machine &machine)
bool unknownSocketDirection() const
virtual bool canWrite(const Bus &bus) const
virtual bool canBridge(const TTAMachine::Bus &source, const TTAMachine::Bus &destination)
const TTAMachine::Machine * machine_
The machine on which the tests are carried out.
bool illegalRegistration() const
const TTAMachine::Bus * branchedBus_
If the reason for failure when trying to bridge two busses is that a branch in the bus chain would be...
Direction direction() const
virtual bool hasPreviousBus() const
bool noConnections() const
TTAMachine::Port * sameDirOutputSocketConn_
If the reason for failure when tried to set socket direction to output was that the socket is connect...
bool wrongSocketDirection() const
TTAMachine::Port * sameDirInputSocketConn_
If the reason for failure when tried to set socket direction to input was that the socket is connecte...
TTAMachine::Bus * branchedBus() const
virtual int socketCount() const
#define assert(condition)
bool registerFilePortAlreadyConnected() const
TTAMachine::Port * sameDirSocketConnection(TTAMachine::Socket::Direction direction) const
static bool isValidComponentName(const std::string &name)
bool isConnectedTo(const Bus &bus) const
bool wrongSocketDirection_
Indicates if the reason for failure when trying to connect a socket to a port was that the direction ...
virtual int portCount() const
bool legalPortConnections(const TTAMachine::Socket &socket, TTAMachine::Socket::Direction direction)
static bool areInSameChain(const TTAMachine::Bus &bus1, const TTAMachine::Bus &bus2)
bool connectionExists() const
virtual RFPort * port(const std::string &name) const
virtual bool hasNextBus() const
TTAMachine::Port * forbiddenInputSocketDir_
If the reason for failure when tried to set socket direction to input was the socket is connected to ...
bool loop_
Indicates if the reason for failure when trying to bridge two busses is that a loop in the bus chain ...
TTAMachine::Port * forbiddenSocketDirection(TTAMachine::Socket::Direction direction) const
virtual Bus * previousBus() const
virtual Machine * machine() const
virtual bool canSetDirection(const TTAMachine::Socket &socket, TTAMachine::Socket::Direction direction)
bool unknownDir_
Indicates if tried to set the socket direction to Socket::UNKNOWN.
virtual Socket * outputSocket() const
bool rfPortAlreadyConnected_
Indicates if the reason for failure is that a port of register file is already connected to a particu...
virtual bool isConnectedTo(const Socket &socket) const
bool maxConnections() const
virtual Bus * nextBus() const
bool illegalRegistration_
Indicates if the reason for last test failure was illegal registration.
bool maxConnections_
Indicates if the reason for failure when trying to connect a socket to a port was that this connectio...
bool connectionExists_
Indicates if the reason for the last test failure is that the tested connection already exists.
Unit * parentUnit() const