// 兩個Component的Connection的設定
void ERModel::connectionSetting( Component* sourceNode, Component* destinationNode, string text )
{
	sourceNode->connectTo(destinationNode);

	if (checkSetCardinality(sourceNode->getID(), destinationNode->getID()))
		setCardinality(sourceNode, destinationNode, text);
}
Exemple #2
0
int main(){

std::cout << setCross (SetFactory(0), SetFactory(1)) << std::endl;
std::cout << setIntersect (SetFactory(0), SetFactory(1)) << std::endl;
std::cout << setMinus (SetFactory(0), SetFactory(1)) << std::endl;
std::cout << setUnion (SetFactory(0), SetFactory(1)) << std::endl;
std::cout << setCardinality (SetFactory(1).add( 2).add( 3)) << std::endl;
return 0;


}