![]() |
Kactus2
Kactus2 reference guide
|
Interface for editing abstraction definition port abstractions. More...
#include <PortAbstractionInterface.h>
Public Member Functions | |
PortAbstractionInterface (const PortAbstractionInterface &other)=delete | |
No copying. No assignment. | |
PortAbstractionInterface (QSharedPointer< ExpressionParser > expressionParser, QSharedPointer< ExpressionFormatter > expressionFormatter) | |
virtual | ~PortAbstractionInterface ()=default |
void | addModeSpecificTransactionalSignal (std::string const &portName, General::InterfaceMode const &newMode) |
void | addModeSpecificWireSignal (std::string const &portName, General::InterfaceMode const &newMode) |
void | addTransactionalPort (std::string const &newPortName=std::string("")) final |
void | addTransactionalSystemSignal (std::string const &portName, std::string const &systemGroup) |
void | addWirePort (std::string const &newPortName=std::string("")) final |
void | addWireSystemSignal (std::string const &portName, std::string const &systemGroup) |
int | getAllReferencesToIdInRow (int signalIndex, std::string const &itemID) const |
std::string | getBusWidthExpression (int const &portIndex) const |
std::string | getBusWidthExpression (std::string const &portName, std::string const &interfaceMode, std::string const &systemGroup) const |
std::string | getBusWidthFormattedExpression (int signalIndex) const |
std::string | getBusWidthValue (int portIndex, int baseNumber=0) const |
std::string | getDefaultValueExpression (int const &portIndex) const |
std::string | getDefaultValueFormattedExpression (int const &portIndex) const |
std::string | getDefaultValueValue (int const &portIndex, int baseNumber=0) const |
DirectionTypes::Direction | getDirection (int const &portIndex) const |
DirectionTypes::Direction | getDirection (std::string const &portName, General::InterfaceMode mode, std::string const &systemGroup) const |
std::string | getDirectionString (int const &portIndex) const |
std::string | getDriverString (int const &portIndex) const |
std::string | getIconPathForSignal (int const &signalIndex) const |
std::string | getIconPathForSignal (std::string const &portName, std::string const &interfaceMode, std::string const &systemGroup) const |
std::string | getIndexedItemName (int itemIndex) const final |
std::string | getInitiative (int const &portIndex) const |
std::string | getInitiative (std::string const &portName, std::string const &interfaceMode, std::string const &systemGroup) const |
virtual int | getItemIndex (std::string const &itemName) const override final |
virtual int | getItemIndex (std::string const &itemName, General::InterfaceMode mode, std::string const &systemGroup=std::string()) const |
std::vector< std::string > | getItemNames () const final |
std::vector< std::string > | getItemNamesWithModeAndGroup (std::string const &busModeString, std::string systemGroup) const |
std::string | getKind (int const &portIndex) const |
bool | getMatch (int const &portIndex) const |
General::InterfaceMode | getMode (int const &portIndex) const |
std::string | getModeString (int const &portIndex) const |
std::string | getPayloadExtension (int const &portIndex) |
std::string | getPayloadName (int const &portIndex) |
std::string | getPayloadType (int const &portIndex) |
QSharedPointer< PortAbstraction > | getPort (std::string const &portName) const |
PresenceTypes::Presence | getPresence (int const &portIndex) const |
PresenceTypes::Presence | getPresence (std::string const &portName, std::string const &interfaceMode, std::string const &systemGroup) const |
std::string | getPresenceString (int const &portIndex) const |
std::string | getPresenceString (std::string const &portName, std::string const &interfaceMode, std::string const &systemGroup) const |
std::string | getProtocolType (int const &portIndex) const |
std::string | getQualifierAttribute (int const &portIndex, std::string const &attributeName) const |
std::vector< std::string > | getQualifierAttributes (int const &portIndex) const |
std::vector< std::string > | getQualifierStringList (int const &portIndex) const |
Document::Revision | getRevision () const |
std::string | getSystemGroup (int const &portIndex) const |
std::vector< std::string > | getSystemGroupsForPort (std::string const &portName) const |
std::string | getWidthExpression (int const &portIndex) const |
std::string | getWidthExpression (std::string const &portName, General::InterfaceMode interfaceMode, std::string const &systemGroup) const |
std::string | getWidthExpression (std::string const &portName, std::string const &interfaceMode, std::string const &systemGroup) const |
std::string | getWidthFormattedExpression (int portIndex) const |
std::string | getWidthValue (int portIndex, int const &baseNumber=0) const |
std::string | getWidthValue (std::string const &portName, General::InterfaceMode interfaceMode, std::string const &systemGroup, int const &baseNumber=0) const |
bool | hasProtocol (int const &portIndex) const |
virtual int | itemCount () const override final |
bool | itemHasValidName (std::string const &itemName) const final |
PortAbstractionInterface & | operator= (const PortAbstractionInterface &other)=delete |
bool | portHasMode (std::string const &portName, std::string const &interfaceMode, std::string const &systemGroup) const |
bool | portHasMultiplesOfMasterOrSlave (std::string const &portName, std::string const &mode) |
bool | portIsTransactional (std::string const &portName) const final |
bool | portIsWire (std::string const &portName) const final |
bool | removeSignal (int const &signalIndex) |
void | save () |
void | setAbsDef (QSharedPointer< AbstractionDefinition const > absDef) |
bool | setBusWidth (int const &portIndex, std::string const &newBusWidth) |
bool | setDefaultValue (int const &portIndex, std::string const &newDefaultValue) |
bool | setDirection (int const &portIndex, std::string const &newDirection) |
bool | setDriverType (int const &portIndex, std::string const &newDriver) |
bool | setInitiative (int const &portIndex, std::string const &newInitiative) |
bool | setKind (int const &portIndex, std::string const &newKind) |
bool | setMatch (int const &portIndex, bool match) const |
bool | setMode (int const &portIndex, std::string const &newMode) |
bool | setName (std::string const ¤tName, std::string const &newName) final |
bool | setPayloadExtension (int const &portIndex, std::string const &newPayloadExtension) |
bool | setPayloadName (int const &portIndex, std::string const &newPayloadName) |
bool | setPayloadType (int const &portIndex, std::string const &newPayloadType) |
void | setPortAbstractionValidator (QSharedPointer< PortAbstractionValidator > validator) |
bool | setPresence (int const &portIndex, std::string const &newPresence) |
bool | setProtocolType (int const &portIndex, std::string const &newProtocolType) |
bool | setQualifier (int const &portIndex, std::string const &newQualifier) |
bool | setQualifierAttribute (int const &portIndex, std::string const &attributeName, std::string const &attributeValue) const |
bool | setQualifierAttributes (int const &portIndex, std::vector< std::string > const &attributes) const |
bool | setQualifierStringList (int const &portIndex, std::vector< std::string > const &newQualifierList) |
bool | setSystemGroup (int const &portIndex, std::string const &newSystem) |
bool | setWidth (int const &portIndex, std::string const &newWidth) |
int | signalCount (std::string const &portName) const |
bool | transactionalHasValidBusWidth (int portIndex) const |
bool | validateItems () const final |
bool | wireHasValidDefaultValue (int portIndex) const |
bool | wireHasValidWidth (int portIndex) const |
![]() | |
MasterPortInterface () | |
MasterPortInterface (const MasterPortInterface &other)=delete | |
No copying. No assignment. | |
virtual | ~MasterPortInterface ()=default |
std::string | getIconPathForDirection (DirectionTypes::Direction direction) const |
std::string | getIconPathForInitiative (QString const &initiative) const |
std::string | getIconPathForMissingPort () const |
MasterPortInterface & | operator= (const MasterPortInterface &other)=delete |
![]() | |
NameGroupInterface () | |
NameGroupInterface (const NameGroupInterface &other)=delete | |
No copying. No assignment. | |
virtual | ~NameGroupInterface ()=default |
virtual std::string | getDescription (std::string const &itemName) const |
virtual std::string | getDisplayName (std::string const &itemName) const |
virtual std::string | getShortDescription (std::string const &itemName) const |
NameGroupInterface & | operator= (const NameGroupInterface &other)=delete |
virtual bool | setDescription (std::string const &itemName, std::string const &newDescription) |
virtual bool | setDisplayName (std::string const &itemName, std::string const &newDisplayName) const |
bool | setShortDescription (std::string const &itemName, std::string const &newShortDescription) const |
![]() | |
CommonInterface ()=default | |
CommonInterface (const CommonInterface &other)=delete | |
No copying. No assignment. | |
virtual | ~CommonInterface ()=default |
CommonInterface & | operator= (const CommonInterface &other)=delete |
![]() | |
ParameterizableInterface (const ParameterizableInterface &other)=delete | |
No copying. No assignment. | |
ParameterizableInterface (QSharedPointer< ExpressionParser > expressionParser, QSharedPointer< ExpressionFormatter > expressionFormatter) | |
virtual | ~ParameterizableInterface ()=default |
ParameterizableInterface & | operator= (const ParameterizableInterface &other)=delete |
Additional Inherited Members | |
![]() | |
QString | getUniqueName (std::string const &newName, std::string const &itemTypeName) const |
bool | nameHasChanged (std::string const &newName, std::string const &oldName) const |
![]() | |
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 |
Interface for editing abstraction definition port abstractions.
Definition at line 40 of file PortAbstractionInterface.h.
PortAbstractionInterface::PortAbstractionInterface | ( | QSharedPointer< ExpressionParser > | expressionParser, |
QSharedPointer< ExpressionFormatter > | expressionFormatter ) |
The constructor.
[in] | expressionParser | The expression parser to use. |
[in] | expressionFormatter | The expression formatter to use. |
|
virtualdefault |
The destructor.
|
delete |
No copying. No assignment.
void PortAbstractionInterface::addModeSpecificTransactionalSignal | ( | std::string const & | portName, |
General::InterfaceMode const & | newMode ) |
Add a transactional signal with the selected interface mode to the selected port abstraction.
[in] | portName | Name of the selected port abstraction. |
[in] | newMode | The selected interface mode. |
void PortAbstractionInterface::addModeSpecificWireSignal | ( | std::string const & | portName, |
General::InterfaceMode const & | newMode ) |
Add a wire signal with the selected interface mode to the selected port abstraction.
[in] | portName | Name of the selected port abstraction. |
[in] | newMode | The selected interface mode. |
|
finalvirtual |
Add a port abstraction containing transactional.
[in] | newPortName | Name of the new port. |
Implements MasterPortInterface.
void PortAbstractionInterface::addTransactionalSystemSignal | ( | std::string const & | portName, |
std::string const & | systemGroup ) |
Add a new transactional signal with the selected system group.
[in] | portName | Name of port abstraction containing the signal. |
[in] | systemGroup | The new system group. |
|
finalvirtual |
Add a port abstraction containing wire.
[in] | newPortName | Name of the new port. |
Implements MasterPortInterface.
void PortAbstractionInterface::addWireSystemSignal | ( | std::string const & | portName, |
std::string const & | systemGroup ) |
Add a new wire signal with the selected system group.
[in] | portName | Name of port abstraction containing the signal. |
[in] | systemGroup | The new system group. |
int PortAbstractionInterface::getAllReferencesToIdInRow | ( | int | signalIndex, |
std::string const & | itemID ) const |
Get the number of references made to itemID on a given signal row.
[in] | signalIndex | The index of the signal row. |
[in] | itemID | The parameter itemID to look for. |
std::string PortAbstractionInterface::getBusWidthExpression | ( | int const & | portIndex | ) | const |
Get the bus width expression of the selected signal.
[in] | portIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getBusWidthExpression | ( | std::string const & | portName, |
std::string const & | interfaceMode, | ||
std::string const & | systemGroup ) const |
Get the bus width expression of the selected signal.
[in] | portName | Name of the selected port. |
[in] | interfaceMode | The selected bus interface mode. |
[in] | systemGroup | The selected system group. |
std::string PortAbstractionInterface::getBusWidthFormattedExpression | ( | int | signalIndex | ) | const |
Get the formatted expression of the bus width of the selected signal.
[in] | portIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getBusWidthValue | ( | int | portIndex, |
int | baseNumber = 0 ) const |
Get the evaluated value of the bus width of the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | baseNumber | The base to format the value to. |
std::string PortAbstractionInterface::getDefaultValueExpression | ( | int const & | portIndex | ) | const |
Get the default value expression of the selected signal.
[in] | portIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getDefaultValueFormattedExpression | ( | int const & | portIndex | ) | const |
Get the formatted expression default value of the selected signal.
[in] | portIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getDefaultValueValue | ( | int const & | portIndex, |
int | baseNumber = 0 ) const |
Get the evaluated default value of the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | baseNumber | The base to format the value to. |
DirectionTypes::Direction PortAbstractionInterface::getDirection | ( | int const & | portIndex | ) | const |
Get the direction of the selected signal.
[in] | portIndex | Index of the selected signal. |
DirectionTypes::Direction PortAbstractionInterface::getDirection | ( | std::string const & | portName, |
General::InterfaceMode | mode, | ||
std::string const & | systemGroup ) const |
Get the direction of the selected signal.
[in] | portName | The selected signal name. |
[in] | mode | The selected bus interface mode. |
[in] | systemGroup | The selected system group. |
std::string PortAbstractionInterface::getDirectionString | ( | int const & | portIndex | ) | const |
Get the direction of the selected signal in string form.
[in] | portIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getDriverString | ( | int const & | portIndex | ) | const |
Get the driver of the selected signal in string form.
[in] | portIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getIconPathForSignal | ( | int const & | signalIndex | ) | const |
Get the icon path of the selected signal.
[in] | signalIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getIconPathForSignal | ( | std::string const & | portName, |
std::string const & | interfaceMode, | ||
std::string const & | systemGroup ) const |
Get the icon path of the selected signal.
[in] | portName | Name of the selected port. |
[in] | interfaceMode | The selected bus interface mode. |
[in] | systemGroup | The selected system group. |
|
finalvirtual |
Get name of the indexed port.
[in] | itemIndex | Index of the selected port. |
Implements NameGroupInterface.
std::string PortAbstractionInterface::getInitiative | ( | int const & | portIndex | ) | const |
Get the initiative of the selected signal.
[in] | portIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getInitiative | ( | std::string const & | portName, |
std::string const & | interfaceMode, | ||
std::string const & | systemGroup ) const |
Get the initiative of the selected signal.
[in] | portName | Name of the selected port. |
[in] | interfaceMode | The selected bus interface mode. |
[in] | systemGroup | The selected system group. |
|
finaloverridevirtual |
Get index of the first signal containing the selected port abstraction.
[in] | itemName | Name of the selected port abstraction. |
Implements NameGroupInterface.
|
virtual |
Get index of the signal containing the selected port abstraction with the given mode.
[in] | itemName | Name of the selected port abstraction. |
[in] | mode | Mode of the selected port abstraction. |
|
finalvirtual |
Get the names of the available port abstractions.
Implements CommonInterface.
std::vector< std::string > PortAbstractionInterface::getItemNamesWithModeAndGroup | ( | std::string const & | busModeString, |
std::string | systemGroup ) const |
Get the list of logical ports with the selected bus interface mode and system group.
[in] | busModeString | The selected bus interface mode in string form. |
[in] | systemGroup | The selected system group. |
std::string PortAbstractionInterface::getKind | ( | int const & | portIndex | ) | const |
Get the kind of the selected signal.
[in] | portIndex | Index of the selected signal. |
bool PortAbstractionInterface::getMatch | ( | int const & | portIndex | ) | const |
Get the match status of the selected signal.
[in] | portIndex | Index of the selected signal. |
General::InterfaceMode PortAbstractionInterface::getMode | ( | int const & | portIndex | ) | const |
Get the interface mode of the selected signal.
[in] | portIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getModeString | ( | int const & | portIndex | ) | const |
Get the interface mode of the selected signal in string form.
[in] | portIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getPayloadExtension | ( | int const & | portIndex | ) |
Get the payload extension of the selected signal.
[in] | portIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getPayloadName | ( | int const & | portIndex | ) |
Get the payload name of the selected signal.
[in] | portIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getPayloadType | ( | int const & | portIndex | ) |
Get the payload type of the selected signal.
[in] | portIndex | Index of the selected signal. |
QSharedPointer< PortAbstraction > PortAbstractionInterface::getPort | ( | std::string const & | portName | ) | const |
Get the port abstraction with the selected name.
[in] | portName | Name of the selected port. |
PresenceTypes::Presence PortAbstractionInterface::getPresence | ( | int const & | portIndex | ) | const |
Get the presence of the selected signal.
[in] | portIndex | Index of the selected signal. |
PresenceTypes::Presence PortAbstractionInterface::getPresence | ( | std::string const & | portName, |
std::string const & | interfaceMode, | ||
std::string const & | systemGroup ) const |
Get the presence of the selected signal.
[in] | portName | Name of the selected port. |
[in] | interfaceMode | The selected bus interface mode. |
[in] | systemGroup | The selected system group. |
std::string PortAbstractionInterface::getPresenceString | ( | int const & | portIndex | ) | const |
Get the presence of the selected signal in string form.
[in] | portIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getPresenceString | ( | std::string const & | portName, |
std::string const & | interfaceMode, | ||
std::string const & | systemGroup ) const |
Get the presence of the selected signal in string form.
[in] | portName | Name of the selected port. |
[in] | interfaceMode | The selected bus interface mode. |
[in] | systemGroup | The selected system group. |
std::string PortAbstractionInterface::getProtocolType | ( | int const & | portIndex | ) | const |
Get the protocol type of the selected signal.
[in] | portIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getQualifierAttribute | ( | int const & | portIndex, |
std::string const & | attributeName ) const |
Get a chosen attribute of a qualifier.
[in] | portIndex | Index of the selected signal. |
[in] | attributeName | The name of the attribute to get. |
[in] | qualifierTypeString | The qualifier type. |
std::vector< std::string > PortAbstractionInterface::getQualifierAttributes | ( | int const & | portIndex | ) | const |
Get all of the qualifier's attributes.
[in] | portIndex | Index of the selected signal. |
std::vector< std::string > PortAbstractionInterface::getQualifierStringList | ( | int const & | portIndex | ) | const |
Get the list of qualifiers of the selected signal.
[in] | portIndex | Index of the selected signal. |
Document::Revision PortAbstractionInterface::getRevision | ( | ) | const |
Get the standard revision of the abstraction definition.
@return The standard revision used.
std::string PortAbstractionInterface::getSystemGroup | ( | int const & | portIndex | ) | const |
Get the system group of the selected signal.
[in] | portIndex | Index of the selected signal. |
std::vector< std::string > PortAbstractionInterface::getSystemGroupsForPort | ( | std::string const & | portName | ) | const |
Get the system groups of the selected port abstraction.
[in] | portName | Name of the selected port abstraction. |
std::string PortAbstractionInterface::getWidthExpression | ( | int const & | portIndex | ) | const |
Get the width expression of the selected signal.
[in] | portIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getWidthExpression | ( | std::string const & | portName, |
General::InterfaceMode | interfaceMode, | ||
std::string const & | systemGroup ) const |
Get the width expression of the selected signal.
[in] | portName | Name of the selected port. |
[in] | interfaceMode | The selected bus interface mode. |
[in] | systemGroup | The selected system group. |
std::string PortAbstractionInterface::getWidthExpression | ( | std::string const & | portName, |
std::string const & | interfaceMode, | ||
std::string const & | systemGroup ) const |
Get the width expression of the selected signal.
[in] | portName | Name of the selected port. |
[in] | interfaceMode | The selected bus interface mode in string form. |
[in] | systemGroup | The selected system group. |
std::string PortAbstractionInterface::getWidthFormattedExpression | ( | int | portIndex | ) | const |
Get the formatted expression for the width of the selected wire port.
[in] | portIndex | Index of the selected signal. |
std::string PortAbstractionInterface::getWidthValue | ( | int | portIndex, |
int const & | baseNumber = 0 ) const |
Get the width value of the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | baseNumber | Base number to format the value to. |
std::string PortAbstractionInterface::getWidthValue | ( | std::string const & | portName, |
General::InterfaceMode | interfaceMode, | ||
std::string const & | systemGroup, | ||
int const & | baseNumber = 0 ) const |
Get the width value of the selected signal.
[in] | portName | Name of the selected port. |
[in] | interfaceMode | The interface mode of the port. |
[in] | systemGroup | The port system group. |
[in] | baseNumber | Base number to format the value to. |
bool PortAbstractionInterface::hasProtocol | ( | int const & | portIndex | ) | const |
Check if the selected signal contains protocol.
[in] | portIndex | Index of the selected signal. |
|
finaloverridevirtual |
Get the number of available port abstractions.
Implements CommonInterface.
|
finalvirtual |
Check if the selected port abstraction has a valid name.
[in] | portName | Name of the selected port abstraction. |
Implements NameGroupInterface.
|
delete |
bool PortAbstractionInterface::portHasMode | ( | std::string const & | portName, |
std::string const & | interfaceMode, | ||
std::string const & | systemGroup ) const |
Check if the selected port has the selected bus interface mode and system group.
[in] | portName | Name of the selected port. |
[in] | interfaceMode | The selected bus interface mode. |
[in] | systemGroup | The selected system group. |
bool PortAbstractionInterface::portHasMultiplesOfMasterOrSlave | ( | std::string const & | portName, |
std::string const & | mode ) |
Check if the selected port abstraction has multiples of the selected interface mode.
[in] | portName | Name of the selected port abstraction. |
[in] | mode | The selected interface mode. |
|
finalvirtual |
Check if the selected port abstraction contains a transactional.
[in] | portName | Name of the selected port. |
Implements MasterPortInterface.
|
finalvirtual |
Check if the selected port abstraction contains a wire.
[in] | portName | Name of the selected port abstraction. |
Implements MasterPortInterface.
bool PortAbstractionInterface::removeSignal | ( | int const & | signalIndex | ) |
Remove the selected signal.
[in] | signalIndex | Index of the selected signal. |
void PortAbstractionInterface::save | ( | ) |
Write the ports from the table to the abstraction definition.
void PortAbstractionInterface::setAbsDef | ( | QSharedPointer< AbstractionDefinition const > | absDef | ) |
Setup the port abstractions.
[in] | absDef | Abstraction definition containing the port abstractions. |
bool PortAbstractionInterface::setBusWidth | ( | int const & | portIndex, |
std::string const & | newBusWidth ) |
Set a new bus width for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newBusWidth | The new bus width. |
bool PortAbstractionInterface::setDefaultValue | ( | int const & | portIndex, |
std::string const & | newDefaultValue ) |
Set a new default value for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newDefaultValue | The new default value. |
bool PortAbstractionInterface::setDirection | ( | int const & | portIndex, |
std::string const & | newDirection ) |
Set a new direction for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newDirection | The new direction. |
bool PortAbstractionInterface::setDriverType | ( | int const & | portIndex, |
std::string const & | newDriver ) |
Set a new driver type for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newDriver | The new driver type. |
bool PortAbstractionInterface::setInitiative | ( | int const & | portIndex, |
std::string const & | newInitiative ) |
Set a new initiative for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newInitiative | The new initiative. |
bool PortAbstractionInterface::setKind | ( | int const & | portIndex, |
std::string const & | newKind ) |
Set a new kind for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newKind | The new kind. |
bool PortAbstractionInterface::setMatch | ( | int const & | portIndex, |
bool | match ) const |
Set the match status of the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | match | Match flag to set. |
bool PortAbstractionInterface::setMode | ( | int const & | portIndex, |
std::string const & | newMode ) |
Set the interface mode for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newMode | The new interface mode. |
|
finalvirtual |
Set a new name for the selected port abstraction.
[in] | currentName | Name of the selected port abstraction. |
[in] | newName | New name for the port abstraction. |
Implements NameGroupInterface.
bool PortAbstractionInterface::setPayloadExtension | ( | int const & | portIndex, |
std::string const & | newPayloadExtension ) |
Set a new payload extension for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newPayloadExtension | The new payload extension. |
bool PortAbstractionInterface::setPayloadName | ( | int const & | portIndex, |
std::string const & | newPayloadName ) |
Set a new payload name for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newPayloadName | The new payload name. |
bool PortAbstractionInterface::setPayloadType | ( | int const & | portIndex, |
std::string const & | newPayloadType ) |
Set a new payload type for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newPayloadType | The new payload type. |
void PortAbstractionInterface::setPortAbstractionValidator | ( | QSharedPointer< PortAbstractionValidator > | validator | ) |
Set the validator to use.
[in] | validator | The validator to use. |
bool PortAbstractionInterface::setPresence | ( | int const & | portIndex, |
std::string const & | newPresence ) |
Set a new presence for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newPresence | The new presence. |
bool PortAbstractionInterface::setProtocolType | ( | int const & | portIndex, |
std::string const & | newProtocolType ) |
Set a new protocol type for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newProtocolType | The new protocol type. |
bool PortAbstractionInterface::setQualifier | ( | int const & | portIndex, |
std::string const & | newQualifier ) |
Set the qualifier for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newQualifier | The new qualifier. |
bool PortAbstractionInterface::setQualifierAttribute | ( | int const & | portIndex, |
std::string const & | attributeName, | ||
std::string const & | attributeValue ) const |
Set a qualifier attribute for a specific qualifier type.
[in] | portIndex | Index of the selected signal. |
[in] | attributeName | The name of the attribute to set. |
[in] | attributeValue | The value of the attribute to set. |
[in] | qualifierTypeString | The qualifier type. |
bool PortAbstractionInterface::setQualifierAttributes | ( | int const & | portIndex, |
std::vector< std::string > const & | attributes ) const |
Set all qualifier attributes at once.
[in] | portIndex | Index of the selected signal. |
[in] | attributes | Map of attributes to set as name-value pairs. |
bool PortAbstractionInterface::setQualifierStringList | ( | int const & | portIndex, |
std::vector< std::string > const & | newQualifierList ) |
Set a new list of qualifiers for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newQualifierList | The new list of qualifiers. |
bool PortAbstractionInterface::setSystemGroup | ( | int const & | portIndex, |
std::string const & | newSystem ) |
Set the system group for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newSystem | The new system group. |
bool PortAbstractionInterface::setWidth | ( | int const & | portIndex, |
std::string const & | newWidth ) |
Set a new width for the selected signal.
[in] | portIndex | Index of the selected signal. |
[in] | newWidth | The new width. |
int PortAbstractionInterface::signalCount | ( | std::string const & | portName | ) | const |
Get the number of available signals in the selected port abstraction.
[in] | portName | Name of the selected port abstraction. |
bool PortAbstractionInterface::transactionalHasValidBusWidth | ( | int | portIndex | ) | const |
|
finalvirtual |
Validates the contained port abstractions.
Implements CommonInterface.
bool PortAbstractionInterface::wireHasValidDefaultValue | ( | int | portIndex | ) | const |
Check if the default value of the wire port is valid.
[in] | portIndex | The index of the selected signal. |
bool PortAbstractionInterface::wireHasValidWidth | ( | int | portIndex | ) | const |
Check if the width of the wire port is valid.
[in] | portIndex | The index of the selected signal. |