![]() |
Kactus2
Kactus2 reference guide
|
Interface for accessing component instances. More...
#include <ComponentInstanceInterface.h>
Public Member Functions | |
ComponentInstanceInterface (const ComponentInstanceInterface &other)=delete | |
No copying. No assignment. | |
ComponentInstanceInterface (InterconnectionInterface *connectionInterface, AdHocConnectionInterface *adHocInterface) | |
virtual | ~ComponentInstanceInterface ()=default |
void | addComponentInstance (std::string const &instanceName="") |
QSharedPointer< ConfigurableVLNVReference > | getComponentReference (std::string const &instanceName) const |
virtual std::string | getDescription (std::string const &itemName) const override final |
std::string | getIndexedItemName (int itemIndex) const final |
virtual int | getItemIndex (std::string const &itemName) const override final |
virtual std::vector< std::string > | getItemNames () const override final |
bool | instanceExists (std::string const &instanceName) const |
virtual int | itemCount () const override final |
virtual bool | itemHasValidName (std::string const &itemName) const override final |
ComponentInstanceInterface & | operator= (const ComponentInstanceInterface &other)=delete |
bool | removeComponentInstance (std::string const &instanceName) |
void | setComponentInstances (QSharedPointer< Design > newDesign) |
bool | setComponentReference (std::string const &instanceName, std::string const &newVendor, std::string const &newLibrary, std::string const &newName, std::string const &newVersion) |
virtual bool | setDescription (std::string const &itemName, std::string const &newDescription) override final |
virtual bool | setName (std::string const ¤tName, std::string const &newName) override final |
virtual bool | validateItems () const override final |
![]() | |
NameGroupInterface () | |
NameGroupInterface (const NameGroupInterface &other)=delete | |
No copying. No assignment. | |
virtual | ~NameGroupInterface ()=default |
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 | 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 |
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 |
Interface for accessing component instances.
Definition at line 29 of file ComponentInstanceInterface.h.
ComponentInstanceInterface::ComponentInstanceInterface | ( | InterconnectionInterface * | connectionInterface, |
AdHocConnectionInterface * | adHocInterface ) |
The constructor.
[in] | connectionInterface | Interface for accessing interconnections. |
[in] | adHocInterface | Interface for accessing ad hoc connections. |
|
virtualdefault |
The destructor.
|
delete |
No copying. No assignment.
void ComponentInstanceInterface::addComponentInstance | ( | std::string const & | instanceName = "" | ) |
Add a new component instance.
[in] | instanceName | Name of the new component instance. |
QSharedPointer< ConfigurableVLNVReference > ComponentInstanceInterface::getComponentReference | ( | std::string const & | instanceName | ) | const |
Get the VLNV of the referenced component of the selected component instance.
[in] | instanceName | Name of the selected component instance. |
|
finaloverridevirtual |
Get the description of the selected component instance.
[in] | itemName | Name of the selected component instance. |
Reimplemented from NameGroupInterface.
|
finalvirtual |
Get name of the indexed component instance.
[in] | itemIndex | Index of the selected component instance. |
Implements NameGroupInterface.
|
finaloverridevirtual |
Get index of the selected component instance.
[in] | itemName | Name of the selected component instance. |
Implements NameGroupInterface.
|
finaloverridevirtual |
Get the names of the available component instances.
Implements CommonInterface.
bool ComponentInstanceInterface::instanceExists | ( | std::string const & | instanceName | ) | const |
Check if the selected component instance exists.
[in] | instanceName | Name of the selected component instance. |
|
finaloverridevirtual |
Get the number of available component instances.
Implements CommonInterface.
|
finaloverridevirtual |
Check if the selected component instance has a valid name.
[in] | itemName | Name of the selected component instance. |
Implements NameGroupInterface.
|
delete |
bool ComponentInstanceInterface::removeComponentInstance | ( | std::string const & | instanceName | ) |
Remove the selected component instance.
[in] | instanceName | Name of the selected component instance. |
void ComponentInstanceInterface::setComponentInstances | ( | QSharedPointer< Design > | newDesign | ) |
Setup the component instances.
[in] | newDesign | Design containing the component instances. |
bool ComponentInstanceInterface::setComponentReference | ( | std::string const & | instanceName, |
std::string const & | newVendor, | ||
std::string const & | newLibrary, | ||
std::string const & | newName, | ||
std::string const & | newVersion ) |
Set a new component reference for the selected component instance.
[in] | instanceName | Name of the selected component instance. |
[in] | newVendor | Vendor of the new component reference. |
[in] | newLibrary | Library of the new component reference. |
[in] | newName | Name of the new component reference. |
[in] | newVersion | Version of the new component reference. |
|
finaloverridevirtual |
Set a new description for the selected component instance.
[in] | itemName | Name of the selected component instance. |
[in] | newDescription | New description. |
Reimplemented from NameGroupInterface.
|
finaloverridevirtual |
Set a new name for the selected component instance.
[in] | currentName | Name of the selected component instance. |
[in] | newName | New name for the component instance. |
Implements NameGroupInterface.
|
finaloverridevirtual |
Validates the contained component instances.
Implements CommonInterface.