Overview
Comment: | Added portlist for internal ports. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
6e6c017e61891bf4aba8fbd288e5d8e1 |
User & Date: | geraint@users.sourceforge.net on 2002-12-07 18:33:08 |
Other Links: | branch diff | manifest | tags |
Context
2002-12-09
| ||
00:14:08 | Hierarchical dia and mixed dia/fig bond graphs now working. check-in: 57a6fc2892 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
2002-12-07
| ||
18:33:08 | Added portlist for internal ports. check-in: 6e6c017e61 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
2002-12-06
| ||
22:14:35 |
Fixed handling of anonymous components - default cr and args were printed in fields 1 and 2 with 3 empty - now lists anonymous components in label file for information check-in: edf73359ab user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/dia2abg.pl from [4fe08566f1] to [96410e2cea].
︙ | ︙ | |||
348 349 350 351 352 353 354 | } $connections = join(" ",@clist); output_component($NM,$type,$cr,$arg,$rep,$stat,$connections,$subsys_or_port); } | < > | > > > > > > > > > > > > > > | | | > | 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 | } $connections = join(" ",@clist); output_component($NM,$type,$cr,$arg,$rep,$stat,$connections,$subsys_or_port); } # order component id's so that entries found in _lbl.txt file are # in _lbl file order, and other entries follow. my (@id_list); @id_list = keys(%component_id_tag); @id_list = sort by_label_file @id_list; # calculate string length of longest component name (for octave): $strlength=0; foreach my $compname (@id_list) { my $name = id_to_name($compname); $strlength = length($name) if length($name) > $strlength; }; print OUT "# Ordered list of Port names\n"; my $i=1; foreach my $id (@id_list) { my ($subsys_or_port,$name) = id_to_name($id); if ($subsys_or_port eq "ports") { $_ = $name; remove_brackets(); $name = $_; print OUT " " . $diagram_name . ".portlist($i,:)" . ' = "' . $name . " " x ($strlength - length($name)) . '";' . "\n"; $i++; } } print OUT "\n"; print OUT "# Ordered list of subsystem names\n"; $i=1; foreach my $id (@id_list) { my ($subsys_or_port,$name) = id_to_name($id); if ($subsys_or_port eq "subsystems") { print OUT " " . $diagram_name . ".subsystemlist($i,:)" . ' = "' . $name . " " x ($strlength - length($name)) . '";' . "\n"; $i++; } } print OUT "\n"; } sub output_bond_causality { my ($mtt_bond_id,$dia_bond_id,$mtt_causality,%reverse_mtt_bond_id_index); |
︙ | ︙ |