Overview
Comment:Names anonymous components consistently with Xfig models.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: a87ba97558bff54240e2087ca179c8c2bff7a24e4796af2ab5e28cd73b41e649
User & Date: geraint@users.sourceforge.net on 2004-08-04 22:28:57
Other Links: branch diff | manifest | tags
Context
2004-08-04
23:54:43
Simple Oscillator model built with Dia
(requires bond graph patches to be applied to Dia)
check-in: ff688367cd user: geraint@users.sourceforge.net tags: origin/master, trunk
22:28:57
Names anonymous components consistently with Xfig models. check-in: a87ba97558 user: geraint@users.sourceforge.net tags: origin/master, trunk
22:16:02
Writes junctions to component list. check-in: 809e074f8a user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/dia2abg.pl from [0963470534] to [144666cf03].

565
566
567
568
569
570
571

572
573

574
575
576


577
578
579
580
581
582
583
565
566
567
568
569
570
571
572
573

574



575
576
577
578
579
580
581
582
583







+

-
+
-
-
-
+
+







	    $repetitions = 1;
	}
	my ($type, $name) = split (/:/, $type_name);
	if (! $name) {
	    $type = $type_name;
	    if (! defined ($anon_index{$type})) {
		$anon_index{$type} = 1;
		$name = "mtt${type}";
	    } else {
		$anon_index{$type}++;
		my $num = ++$anon_index{$type};
	    }
	    my $num = $anon_index{$type};
	    $name = "mtt${type}_${num}";
		$name = "mtt${type}_${num}";
	    }
	    $anonymous = 1;
	} else {
	    $anonymous = 0;
	}
	$component_id_type{$id} = $type;
	$component_id_name{$id} = $name;
	$component_id_reps{$id} = $repetitions;


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]