Duplicate Component Definition
Definition:
Two or more components declare identical variables, constants, timers or ports.
Code Example:
type component c1 {
var integer i ;
const integer id := 1;
timer t;
port ExamplePort p1;
}
type component c2 {
const integer id := 2;
timer t;
port ExamplePort p2;
}
References:
Quality attributes
- Code Example
- Cause and Effect
- Frequency
- Refactoring