OpenASIP  2.0
Public Member Functions | List of all members
DummyMachineTester Class Reference

#include <DummyMachineTester.hh>

Inheritance diagram for DummyMachineTester:
Inheritance graph
Collaboration diagram for DummyMachineTester:
Collaboration graph

Public Member Functions

 DummyMachineTester (const TTAMachine::Machine &machine)
 
virtual ~DummyMachineTester ()
 
virtual bool canConnect (const TTAMachine::Socket &socket, const TTAMachine::Segment &segment)
 
virtual bool canConnect (const TTAMachine::Socket &socket, const TTAMachine::Port &port)
 
virtual bool canBridge (const TTAMachine::Bus &source, const TTAMachine::Bus &destination)
 
virtual bool canSetDirection (const TTAMachine::Socket &socket, TTAMachine::Socket::Direction direction)
 
- Public Member Functions inherited from MachineTester
 MachineTester (const TTAMachine::Machine &machine)
 
virtual ~MachineTester ()
 
bool connectionExists () const
 
bool illegalRegistration () const
 
bool loop () const
 
TTAMachine::BusbranchedBus () const
 
bool wrongSocketDirection () const
 
bool maxConnections () const
 
bool unknownSocketDirection () const
 
bool noConnections () const
 
TTAMachine::PortsameDirSocketConnection (TTAMachine::Socket::Direction direction) const
 
TTAMachine::PortforbiddenSocketDirection (TTAMachine::Socket::Direction direction) const
 
bool registerFilePortAlreadyConnected () const
 

Additional Inherited Members

- Static Public Member Functions inherited from MachineTester
static bool isValidComponentName (const std::string &name)
 

Detailed Description

A dummy machine tester which doesn't test anything.

Definition at line 41 of file DummyMachineTester.hh.

Constructor & Destructor Documentation

◆ DummyMachineTester()

DummyMachineTester::DummyMachineTester ( const TTAMachine::Machine machine)

The constructor.

Parameters
MachineThe machine to be tested.

Definition at line 40 of file DummyMachineTester.cc.

40  :
42 }

◆ ~DummyMachineTester()

DummyMachineTester::~DummyMachineTester ( )
virtual

The destructor.

Definition at line 48 of file DummyMachineTester.cc.

48  {
49 }

Member Function Documentation

◆ canBridge()

bool DummyMachineTester::canBridge ( const TTAMachine::Bus source,
const TTAMachine::Bus destination 
)
virtual

Always returns true.

Returns
True.

Reimplemented from MachineTester.

Definition at line 86 of file DummyMachineTester.cc.

88  {
89 
90  return true;
91 }

◆ canConnect() [1/2]

bool DummyMachineTester::canConnect ( const TTAMachine::Socket socket,
const TTAMachine::Port port 
)
virtual

Always returns true.

Returns
True.

Reimplemented from MachineTester.

Definition at line 72 of file DummyMachineTester.cc.

74  {
75 
76  return true;
77 }

◆ canConnect() [2/2]

bool DummyMachineTester::canConnect ( const TTAMachine::Socket socket,
const TTAMachine::Segment segment 
)
virtual

Always returns true.

Returns
True.

Reimplemented from MachineTester.

Definition at line 58 of file DummyMachineTester.cc.

60  {
61 
62  return true;
63 }

◆ canSetDirection()

bool DummyMachineTester::canSetDirection ( const TTAMachine::Socket socket,
TTAMachine::Socket::Direction  direction 
)
virtual

Always returns true.

Returns
True.

Reimplemented from MachineTester.

Definition at line 100 of file DummyMachineTester.cc.

102  {
103 
104  return true;
105 }

The documentation for this class was generated from the following files:
machine
TTAMachine::Machine * machine
the architecture definition of the estimated processor
Definition: EstimatorCmdLineUI.cc:59
MachineTester::MachineTester
MachineTester(const TTAMachine::Machine &machine)
Definition: MachineTester.cc:57