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: 5d66d7dafedc6e89a413950a663741e3e164c13a1f97ab0cab3051ee739b0e97
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: 70193d65aa user: geraint@users.sourceforge.net tags: origin/master, trunk
22:28:57
Names anonymous components consistently with Xfig models. check-in: 5d66d7dafe user: geraint@users.sourceforge.net tags: origin/master, trunk
22:16:02
Writes junctions to component list. check-in: 5936a151d4 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 ]