9 #ifndef BLOCKFACTORY_CORE_BLOCK_H 10 #define BLOCKFACTORY_CORE_BLOCK_H 92 virtual ~Block() =
default;
296 #endif // BLOCKFACTORY_CORE_BLOCK_H virtual unsigned numberOfParameters()
Returns the number of configuration parameters needed by this block.
Parameters m_parameters
Container for block parameters. You can get this member using Block::getParameters.
Definition: Block.h:86
std::string getUniqueName(const BlockInformation *blockInfo) const
Get the unique name of the block instance.
bool getParameters(blockfactory::core::Parameters ¶ms) const
Gather all the stored parameters.
virtual std::vector< std::string > additionalBlockOptions()
Returns the vector of additional block options.
virtual bool initialize(BlockInformation *blockInfo)
Initialize the block.
virtual bool configureSizeAndPorts(BlockInformation *blockInfo)
Configure the input and output ports.
virtual bool terminate(const BlockInformation *blockInfo)
Cleanup block resources.
virtual unsigned numberOfContinuousStates()
Returns the number of continuous states of the block.
Basic abstract class for wrapping generic algorithms.
Definition: Block.h:82
virtual bool stateDerivative(const BlockInformation *blockInfo)
Update the internal continuous state.
virtual unsigned numberOfDiscreteStates()
Returns the number of discrete states of the block.
Class for storing block's parameters.
Definition: Parameters.h:34
virtual bool updateDiscreteState(const BlockInformation *blockInfo)
Update the internal discrete state.
virtual bool output(const BlockInformation *blockInfo)=0
Compute the output of the block.
virtual bool parseParameters(BlockInformation *blockInfo)
Parse the parameters stored into the core::BlockInformation object.
static constexpr unsigned NumberOfParameters
Number of parameters of core::Block.
Definition: Block.h:108
virtual bool parameterAtIndexIsTunable(unsigned index)
Specify if the parameter at the specified index is tunable.
virtual ~Block()=default
Destructor.
virtual bool initializeInitialConditions(const BlockInformation *blockInfo)
Initialize block initial conditions.