Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
PortMapInterface Class Reference

Interface for editing port maps. More...

#include <PortMapInterface.h>

Inheritance diagram for PortMapInterface:
ParameterizableInterface CommonInterface

Public Member Functions

 PortMapInterface (QSharedPointer< PortMapValidator > validator, QSharedPointer< ExpressionParser > expressionParser, QSharedPointer< ExpressionFormatter > expressionFormatter, PortsInterface *physicalPortInterface, PortAbstractionInterface *logicalPortInterface)
 
virtual ~PortMapInterface ()=default
 
void addPortMap (int const &row)
 
bool connectedPortsHaveSameRange (int const &portMapIndex) const
 
bool connectedPortsHaveValidDirections (int const &portMapIndex) const
 
bool connectedPortsHaveValidInitiatives (int const &portMapIndex) const
 
bool connectedPortsHaveValidPortTypes (int const &portMapIndex) const
 
bool connectPorts (std::string const &logicalPortName, std::string const &physicalPortName)
 
void createAllSignals ()
 
void createOptionalSignals ()
 
void createRequiredSignals ()
 
virtual int getAllReferencesToIdInItem (const std::string &itemName, std::string const &valueID) const override final
 
std::vector< std::string > getExpressionsInSelectedPortMap (int const &portMapIndex) const
 
virtual std::string getIndexedItemName (int const &itemIndex) const
 
General::InterfaceMode getInterfaceMode () const
 
bool getInvertBool (int const &portMapIndex) const
 
std::string getInvertString (int const &portMapIndex) const
 
BooleanValue getInvertValue (int const &portMapIndex) const
 
std::string getIsInformativeString (int const &portMapIndex) const
 
bool getIsInformativeValue (int const &portMapIndex) const
 
virtual std::vector< std::string > getItemNames () const override final
 
std::string getLogicalLeftBoundExpression (int const &portMapIndex) const
 
std::string getLogicalLeftBoundFormattedExpression (int const &portMapIndex) const
 
std::string getLogicalLeftBoundValue (int const &portMapIndex, int const &baseNumber=0) const
 
std::string getLogicalPortIconPath (int const &portMapIndex) const
 
PortAbstractionInterfacegetLogicalPortInterface () const
 
std::string getLogicalPortName (int const &portMapIndex) const
 
std::string getLogicalPresence (int const &portMapIndex)
 
std::string getLogicalPresenceWithLogicalPort (std::string const &logicalName)
 
std::string getLogicalRightBoundExpression (int const &portMapIndex) const
 
std::string getLogicalRightBoundFormattedExpression (int const &portMapIndex) const
 
std::string getLogicalRightBoundValue (int const &portMapIndex, int const &baseNumber=0) const
 
std::string getLogicalTieOffExpression (int const &portMapIndex) const
 
std::string getLogicalTieOffFormattedExpression (int const &portMapIndex) const
 
std::string getLogicalTieOffValue (int const &portMapIndex, int const &baseNumber=0) const
 
std::string getPhysicalLeftBoundExpression (int const &portMapIndex) const
 
std::string getPhysicalLeftBoundFormattedExpression (int const &portMapIndex) const
 
std::string getPhysicalLeftBoundValue (int const &portMapIndex, int const &baseNumber=0) const
 
std::string getPhysicalPortIconPath (int const &portMapIndex) const
 
PortsInterfacegetPhysicalPortInterface () const
 
std::string getPhysicalPortName (int const &portMapIndex) const
 
std::string getPhysicalRightBoundExpression (int const &portMapIndex) const
 
std::string getPhysicalRightBoundFormattedExpression (int const &portMapIndex) const
 
std::string getPhysicalRightBoundValue (int const &portMapIndex, int const &baseNumber=0) const
 
PortMap * getPortMapPointer (int const &portMapIndex) const
 
std::string getSystemGroup () const
 
bool hasPhysicalPort (int const &portMapIndex) const
 
virtual int itemCount () const override final
 
bool logicalPortExists (int const &portMapIndex) const
 
bool logicalPortHasValidRange (int const &portMapIndex) const
 
bool logicalPortIsValid (int const &portMapIndex) const
 
bool physicalMappingIsValid (int const &portMapIndex) const
 
bool physicalPortIsValid (int const &portMapIndex) const
 
std::vector< std::string > removeAllPortMapsFromLogicalPort (std::string const &logicalPortName)
 
bool removePortMap (int const &portMapIndex)
 
bool setInvertValue (int const &portMapIndex, bool newInvertValue) const
 
bool setIsInformativeValue (int const &portMapIndex, bool newIsInformativeValue) const
 
bool setLogicalLeftBound (int const &portMapIndex, std::string const &newLogicalLeft)
 
bool setLogicalPort (int const &portMapIndex, std::string const &newName)
 
bool setLogicalRightBound (int const &portMapIndex, std::string const &newLogicalRight)
 
bool setLogicalTieOff (int const &portMapIndex, std::string const &newTieOff)
 
bool setPhysicalLeftBound (int const &portMapIndex, std::string const &newPhysicalLeft)
 
bool setPhysicalPort (int const &portMapIndex, std::string const &newPhysicalName)
 
bool setPhysicalRightBound (int const &portMapIndex, std::string const &newPhysicalRight)
 
void setupAbstractionDefinition (QSharedPointer< AbstractionDefinition const > absDef)
 
void setupBusMode (General::InterfaceMode busMode)
 
void setupPhysicalPorts (Port::List ports)
 
virtual void setupPortMaps (QSharedPointer< AbstractionType > abstractionType)
 
void setupSystemGroup (QString const &systemGroup)
 
bool tieOffIsValid (int const &portMapIndex) const
 
virtual bool validateItems () const override final
 
- Public Member Functions inherited from ParameterizableInterface
 ParameterizableInterface (const ParameterizableInterface &other)=delete
 No copying. No assignment.
 
 ParameterizableInterface (QSharedPointer< ExpressionParser > expressionParser, QSharedPointer< ExpressionFormatter > expressionFormatter)
 
virtual ~ParameterizableInterface ()=default
 
ParameterizableInterfaceoperator= (const ParameterizableInterface &other)=delete
 
- Public Member Functions inherited from CommonInterface
 CommonInterface ()=default
 
 CommonInterface (const CommonInterface &other)=delete
 No copying. No assignment.
 
virtual ~CommonInterface ()=default
 
CommonInterfaceoperator= (const CommonInterface &other)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from ParameterizableInterface
QString formattedValueFor (QString const &expression) const
 
QString parseExpressionToBaseNumber (QString const &expression, unsigned int const &baseNumber, bool *expressionIsValid=nullptr) const
 
QString parseExpressionToDecimal (QString const &expression, bool *expressionIsValid=nullptr) const
 
- Protected Member Functions inherited from CommonInterface
QString getUniqueName (std::string const &newName, std::string const &itemTypeName) const
 
bool nameHasChanged (std::string const &newName, std::string const &oldName) const
 

Detailed Description

Interface for editing port maps.

Definition at line 37 of file PortMapInterface.h.

Constructor & Destructor Documentation

◆ PortMapInterface()

PortMapInterface::PortMapInterface ( QSharedPointer< PortMapValidator > validator,
QSharedPointer< ExpressionParser > expressionParser,
QSharedPointer< ExpressionFormatter > expressionFormatter,
PortsInterface * physicalPortInterface,
PortAbstractionInterface * logicalPortInterface )

The constructor.

Parameters
[in]validatorValidator for address blocks.
[in]expressionParserParser for expressions.
[in]expressionFormatterFormatter for expressions.
[in]physicalPortInterfaceInterface for accessing physical ports.
[in]logicalPortInterfaceInterface for accessing logical ports.

◆ ~PortMapInterface()

virtual PortMapInterface::~PortMapInterface ( )
virtualdefault

The destructor.

Member Function Documentation

◆ addPortMap()

void PortMapInterface::addPortMap ( int const & row)

Add a new port map.

Parameters
[in]rowRow of the new port map.

◆ connectedPortsHaveSameRange()

bool PortMapInterface::connectedPortsHaveSameRange ( int const & portMapIndex) const

Check if the connected ports of the selected port map have the same range.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
True, if the connected ports have the same range, otherwise false.

◆ connectedPortsHaveValidDirections()

bool PortMapInterface::connectedPortsHaveValidDirections ( int const & portMapIndex) const

Check if the connected ports of the selected port map have valid directions.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
True, if the directions are valid, otherwise false.

◆ connectedPortsHaveValidInitiatives()

bool PortMapInterface::connectedPortsHaveValidInitiatives ( int const & portMapIndex) const

Check if the connected ports of the selected port map have valid initiatives.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
True, if the initiatives are valid, otherwise false.

◆ connectedPortsHaveValidPortTypes()

bool PortMapInterface::connectedPortsHaveValidPortTypes ( int const & portMapIndex) const

Check if the mapped ports have valid port types.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
True, if the mapped ports have valid types, otherwise false.

◆ connectPorts()

bool PortMapInterface::connectPorts ( std::string const & logicalPortName,
std::string const & physicalPortName )

Connect the selected logical port to the selected physical port.

Parameters
[in]logicalPortNameName of the selected logical port.
[in]physicalPortNameName of the selected physical port.
Returns
True, if successful, false otherwise.

◆ createAllSignals()

void PortMapInterface::createAllSignals ( )

Create port maps from all signals.

◆ createOptionalSignals()

void PortMapInterface::createOptionalSignals ( )

Create port maps from signals with optional presence.

◆ createRequiredSignals()

void PortMapInterface::createRequiredSignals ( )

Create port maps from signals with required presence.

◆ getAllReferencesToIdInItem()

virtual int PortMapInterface::getAllReferencesToIdInItem ( const std::string & itemName,
std::string const & valueID ) const
finaloverridevirtual

Calculate all the references to the selected ID in the selected item.

Parameters
[in]itemNameName of the selected item.
[in]valueIDThe selected ID.
Returns
Number of references to the selected ID in the selected item.

Implements ParameterizableInterface.

◆ getExpressionsInSelectedPortMap()

std::vector< std::string > PortMapInterface::getExpressionsInSelectedPortMap ( int const & portMapIndex) const

Get the expressions in the selected port map.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Expressions in the selected component instantiations.

◆ getIndexedItemName()

virtual std::string PortMapInterface::getIndexedItemName ( int const & itemIndex) const
virtual

Get name of the indexed logical port.

Parameters
[in]itemIndexIndex of the selected logical port.
Returns
Name of the selected logical port.

◆ getInterfaceMode()

General::InterfaceMode PortMapInterface::getInterfaceMode ( ) const

Get the currently active bus interface mode.

Returns
The active interface mode.

◆ getInvertBool()

bool PortMapInterface::getInvertBool ( int const & portMapIndex) const

Get the invert value of the logical port of the selected port map.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Invert value.

◆ getInvertString()

std::string PortMapInterface::getInvertString ( int const & portMapIndex) const

Get the invert value of the logical port of the selected port map in string form.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Invert value of the selected logical port in string form.

◆ getInvertValue()

BooleanValue PortMapInterface::getInvertValue ( int const & portMapIndex) const

Get the invert value of the logical port of the selected port map.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Invert value.

◆ getIsInformativeString()

std::string PortMapInterface::getIsInformativeString ( int const & portMapIndex) const

Get the is informative value of the selected port map in string form.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Is informative value of the selected port map in string form.

◆ getIsInformativeValue()

bool PortMapInterface::getIsInformativeValue ( int const & portMapIndex) const

Get the is informative value of the selected port map.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Is informative value of the selected port map.

◆ getItemNames()

virtual std::vector< std::string > PortMapInterface::getItemNames ( ) const
finaloverridevirtual

Get the names of the available logical ports.

Returns
Names of the available logical ports.

Implements CommonInterface.

◆ getLogicalLeftBoundExpression()

std::string PortMapInterface::getLogicalLeftBoundExpression ( int const & portMapIndex) const

Get the logical left bound expression of the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Logical left bound expression of the selected item.

◆ getLogicalLeftBoundFormattedExpression()

std::string PortMapInterface::getLogicalLeftBoundFormattedExpression ( int const & portMapIndex) const

Get the formatted logical left bound expression of the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Formatted logical left bound expression of the selected item.

◆ getLogicalLeftBoundValue()

std::string PortMapInterface::getLogicalLeftBoundValue ( int const & portMapIndex,
int const & baseNumber = 0 ) const

Get the calculated logical left bound of the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
[in]baseNumberBase for displaying the value.
Returns
Calculated logical left bound value of the selected item.

◆ getLogicalPortIconPath()

std::string PortMapInterface::getLogicalPortIconPath ( int const & portMapIndex) const

Get the icon path for the logical port of the selected port map.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Icon path.

◆ getLogicalPortInterface()

PortAbstractionInterface * PortMapInterface::getLogicalPortInterface ( ) const

Get the interface for accessing logical ports.

Returns
Interface for accessing logical ports.

◆ getLogicalPortName()

std::string PortMapInterface::getLogicalPortName ( int const & portMapIndex) const

Get the logical port name modified by the port map index.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Modified logical port name.

◆ getLogicalPresence()

std::string PortMapInterface::getLogicalPresence ( int const & portMapIndex)

Get the logical presence of the logical port in the selected port map.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Logical presence.

◆ getLogicalPresenceWithLogicalPort()

std::string PortMapInterface::getLogicalPresenceWithLogicalPort ( std::string const & logicalName)

Get the logical presence of the selected logical port.

Parameters
[in]logicalPortNameName of the selected logical port.
Returns
Logical presence of the selected logical port.

◆ getLogicalRightBoundExpression()

std::string PortMapInterface::getLogicalRightBoundExpression ( int const & portMapIndex) const

Get the logical right bound expression of the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Logical right bound expression of the selected item.

◆ getLogicalRightBoundFormattedExpression()

std::string PortMapInterface::getLogicalRightBoundFormattedExpression ( int const & portMapIndex) const

Get the formatted logical right bound expression of the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Formatted logical right bound expression of the selected item.

◆ getLogicalRightBoundValue()

std::string PortMapInterface::getLogicalRightBoundValue ( int const & portMapIndex,
int const & baseNumber = 0 ) const

Get the calculated logical right bound of the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
[in]baseNumberBase for displaying the value.
Returns
Calculated logical right bound value of the selected item.

◆ getLogicalTieOffExpression()

std::string PortMapInterface::getLogicalTieOffExpression ( int const & portMapIndex) const

Get the logical tie off expression of the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Logical tie off expression of the selected item.

◆ getLogicalTieOffFormattedExpression()

std::string PortMapInterface::getLogicalTieOffFormattedExpression ( int const & portMapIndex) const

Get the formatted logical tie off expression of the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Formatted logical tie off expression of the selected item.

◆ getLogicalTieOffValue()

std::string PortMapInterface::getLogicalTieOffValue ( int const & portMapIndex,
int const & baseNumber = 0 ) const

Get the calculated logical tie off of the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
[in]baseNumberBase for displaying the value.
Returns
Calculated logical tie off value of the selected item.

◆ getPhysicalLeftBoundExpression()

std::string PortMapInterface::getPhysicalLeftBoundExpression ( int const & portMapIndex) const

Get the physical left bound expression of the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Physical left bound expression of the selected item.

◆ getPhysicalLeftBoundFormattedExpression()

std::string PortMapInterface::getPhysicalLeftBoundFormattedExpression ( int const & portMapIndex) const

Get the formatted physical left bound expression of the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Formatted physical left bound expression of the selected item.

◆ getPhysicalLeftBoundValue()

std::string PortMapInterface::getPhysicalLeftBoundValue ( int const & portMapIndex,
int const & baseNumber = 0 ) const

Get the calculated physical left bound of the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
[in]baseNumberBase for displaying the value.
Returns
Calculated physical left bound value of the selected item.

◆ getPhysicalPortIconPath()

std::string PortMapInterface::getPhysicalPortIconPath ( int const & portMapIndex) const

Get the icon path for the physical port of the selected port map.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Icon path for the physical port in the selected port map.

◆ getPhysicalPortInterface()

PortsInterface * PortMapInterface::getPhysicalPortInterface ( ) const

Get the interface for accessing physical ports.

Returns
Interface for accessing physical ports.

◆ getPhysicalPortName()

std::string PortMapInterface::getPhysicalPortName ( int const & portMapIndex) const

Get the name of the connected physical port in the selected port map.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Name of the connected physical port in the selected port map.

◆ getPhysicalRightBoundExpression()

std::string PortMapInterface::getPhysicalRightBoundExpression ( int const & portMapIndex) const

Get the physical right bound expression of the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Physical right bound expression of the selected item.

◆ getPhysicalRightBoundFormattedExpression()

std::string PortMapInterface::getPhysicalRightBoundFormattedExpression ( int const & portMapIndex) const

Get the formatted physical right bound expression of the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Formatted physical right bound expression of the selected item.

◆ getPhysicalRightBoundValue()

std::string PortMapInterface::getPhysicalRightBoundValue ( int const & portMapIndex,
int const & baseNumber = 0 ) const

Get the calculated physical right bound of the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
[in]baseNumberBase for displaying the value.
Returns
Calculated physical right bound value of the selected item.

◆ getPortMapPointer()

PortMap * PortMapInterface::getPortMapPointer ( int const & portMapIndex) const

Get a pointer to the selected port map.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
Pointer to the selected port map.

◆ getSystemGroup()

std::string PortMapInterface::getSystemGroup ( ) const

Get the currently active system group.

Returns
The active system group.

◆ hasPhysicalPort()

bool PortMapInterface::hasPhysicalPort ( int const & portMapIndex) const

Check if the selected port map has a connected physical port.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
True, if the selected port map is connected to a logical port, false otherwise.

◆ itemCount()

virtual int PortMapInterface::itemCount ( ) const
finaloverridevirtual

Get the number of available port maps.

Returns
Number of available port maps.

Implements CommonInterface.

◆ logicalPortExists()

bool PortMapInterface::logicalPortExists ( int const & portMapIndex) const

Check if the logical port of the selected port map exists.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
True, if the logical port exists, false otherwise.

◆ logicalPortHasValidRange()

bool PortMapInterface::logicalPortHasValidRange ( int const & portMapIndex) const

Checks if the logical port of the selected port map has a valid range.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
True, if the range is valid, otherwise false.

◆ logicalPortIsValid()

bool PortMapInterface::logicalPortIsValid ( int const & portMapIndex) const

Check if the logical port of the selected port map is valid.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
True, if the logical port is valid, false otherwise.

◆ physicalMappingIsValid()

bool PortMapInterface::physicalMappingIsValid ( int const & portMapIndex) const

Check if the physical mapping of the selected port map is valid

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
True, if the physical mapping is valid, false otherwise.

◆ physicalPortIsValid()

bool PortMapInterface::physicalPortIsValid ( int const & portMapIndex) const

Check if the physical port of the selected port map is valid

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
True, if the physical port is valid, false otherwise.

◆ removeAllPortMapsFromLogicalPort()

std::vector< std::string > PortMapInterface::removeAllPortMapsFromLogicalPort ( std::string const & logicalPortName)

Remove all the port maps from the selected logical port.

Parameters
[in]logicalPortNameName of the selected logical port.
Returns
List of connected physical port names.

◆ removePortMap()

bool PortMapInterface::removePortMap ( int const & portMapIndex)

Remove the selected port map.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
True, if successful, false otherwise.

◆ setInvertValue()

bool PortMapInterface::setInvertValue ( int const & portMapIndex,
bool newInvertValue ) const

Set a new invert value for the selected logical port.

Parameters
[in]portMapIndexIndex of the selected port map.
[in]newInvertValueThe new invert value.
Returns
True, if successful, false otherwise.

◆ setIsInformativeValue()

bool PortMapInterface::setIsInformativeValue ( int const & portMapIndex,
bool newIsInformativeValue ) const

Set a new is informative value for the selected port map.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
True, if successful, false otherwise.

◆ setLogicalLeftBound()

bool PortMapInterface::setLogicalLeftBound ( int const & portMapIndex,
std::string const & newLogicalLeft )

Set a new logical left value for the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
[in]newLogicalLeftNew logical left value.
Returns
True, if successful, false otherwise.

◆ setLogicalPort()

bool PortMapInterface::setLogicalPort ( int const & portMapIndex,
std::string const & newName )

Set a new name for the selected logical port.

Parameters
[in]portMapIndexIndex of the selected port map.
[in]newNameNew name for the item.
Returns
True, if successful, false otherwise.

◆ setLogicalRightBound()

bool PortMapInterface::setLogicalRightBound ( int const & portMapIndex,
std::string const & newLogicalRight )

Set a new logical right value for the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
[in]newLogicalRightNew logical right value.
Returns
True, if successful, false otherwise.

◆ setLogicalTieOff()

bool PortMapInterface::setLogicalTieOff ( int const & portMapIndex,
std::string const & newTieOff )

Set a new logical tie off value for the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
[in]newTieOffNew logical tie off value.
Returns
True, if successful, false otherwise.

◆ setPhysicalLeftBound()

bool PortMapInterface::setPhysicalLeftBound ( int const & portMapIndex,
std::string const & newPhysicalLeft )

Set a new physical left bound value for the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
[in]newPhysicalLeftNew physical left value.
Returns
True, if successful, false otherwise.

◆ setPhysicalPort()

bool PortMapInterface::setPhysicalPort ( int const & portMapIndex,
std::string const & newPhysicalName )

Set a new name for the connected physical port in the selected port map.

Parameters
[in]portMapIndexIndex of the selected port map.
[in]newPhysicalNameNew name for the physical port.
Returns
True, if successful, false otherwise.

◆ setPhysicalRightBound()

bool PortMapInterface::setPhysicalRightBound ( int const & portMapIndex,
std::string const & newPhysicalRight )

Set a new physical right bound value for the selected item.

Parameters
[in]portMapIndexIndex of the selected port map.
[in]newPhysicalRightNew physical right value.
Returns
True, if successful, false otherwise.

◆ setupAbstractionDefinition()

void PortMapInterface::setupAbstractionDefinition ( QSharedPointer< AbstractionDefinition const > absDef)

Setup the abstraction definition.

Parameters
[in]absDefThe new abstraction definition.

◆ setupBusMode()

void PortMapInterface::setupBusMode ( General::InterfaceMode busMode)

Setup the bus interface mode.

Parameters
[in]busModeThe new bus interface mode.

◆ setupPhysicalPorts()

void PortMapInterface::setupPhysicalPorts ( Port::List ports)

Setup the available physical ports.

Parameters
[in]componentComponent containing the selected ports.

◆ setupPortMaps()

virtual void PortMapInterface::setupPortMaps ( QSharedPointer< AbstractionType > abstractionType)
virtual

Setup the available port maps.

Parameters
[in]abstractionTypeAbstraction type containing the available port maps.

◆ setupSystemGroup()

void PortMapInterface::setupSystemGroup ( QString const & systemGroup)

Setup the system group.

Parameters
[in]systemGroupThe new system group.

◆ tieOffIsValid()

bool PortMapInterface::tieOffIsValid ( int const & portMapIndex) const

Check if the tie off value of the selected port map is valid.

Parameters
[in]portMapIndexIndex of the selected port map.
Returns
True, if the tie off value of the selected port map is valid, otherwise false.

◆ validateItems()

virtual bool PortMapInterface::validateItems ( ) const
finaloverridevirtual

Validates the contained items.

Returns
True, if all the port maps are valid, false otherwise.

Implements CommonInterface.


The documentation for this class was generated from the following file: