2007-01-30 21:49:42 +00:00
|
|
|
#include "fixedelement.h"
|
2006-10-27 15:47:22 +00:00
|
|
|
/**
|
|
|
|
Constructeur
|
|
|
|
*/
|
2007-01-30 21:49:42 +00:00
|
|
|
FixedElement::FixedElement(QGraphicsItem *parent, Diagram *scene) : Element(parent, scene) {
|
2006-10-27 15:47:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
@return Le nombre minimal de bornes que l'element peut avoir
|
|
|
|
*/
|
2007-01-30 21:49:42 +00:00
|
|
|
int FixedElement::nbTerminalsMin() const {
|
2007-01-29 20:14:26 +00:00
|
|
|
return(nbTerminals());
|
2006-10-27 15:47:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
@return Le nombre maximal de bornes que l'element peut avoir
|
|
|
|
*/
|
2007-01-30 21:49:42 +00:00
|
|
|
int FixedElement::nbTerminalsMax() const {
|
2007-01-29 20:14:26 +00:00
|
|
|
return(nbTerminals());
|
2006-10-27 15:47:22 +00:00
|
|
|
}
|