Changeset 952
- Timestamp:
- 01/03/08 15:43:37 (11 months ago)
- Files:
-
- 1 modified
-
Modelica/trunk/ModelicaReference/package.mo (modified) (191 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Modelica/trunk/ModelicaReference/package.mo
r950 r952 47 47 </html>")); 48 48 49 package Annotations "Annotations" 50 class choices "choices" 51 52 annotation (Documentation(info="<html> 53 <h3><font color=\"#008000\" size=5>choices</font></h3>49 50 package Annotations "Annotations" 51 class choices "choices" 52 53 annotation (Documentation(info="<html> 54 54 <p> 55 55 Define graphical layout of choices in a parameter menu 56 56 </p> 57 57 58 <h 3><font color=\"#008000\">Examples</font></h3>58 <h4><font color=\"#008000\">Examples</font></h4> 59 59 60 60 <pre><b>replaceable model</b> MyResistor=Resistor … … 88 88 89 89 90 <h 3><font color=\"#008000\">Description</font></h3>90 <h4><font color=\"#008000\">Description</font></h4> 91 91 92 92 <p> … … 98 98 end choices; 99 99 100 class defaultComponentName "defaultComponentName" 101 102 annotation (Documentation(info="<html> 103 <h3><font color=\"#008000\" size=5>defaultComponentName</font></h3> 100 class defaultComponentName "defaultComponentName" 101 102 annotation (Documentation(info="<html> 104 103 <p> 105 104 Default name when dragging component 106 105 </p> 107 106 108 <h 3><font color=\"#008000\">Syntax</font></h3>107 <h4><font color=\"#008000\">Syntax</font></h4> 109 108 110 109 <pre> <b>annotation</b>\"(\" defaultComponentName \"=\" STRING \")\" … … 112 111 113 112 114 <h 3><font color=\"#008000\">Description</font></h3>113 <h4><font color=\"#008000\">Description</font></h4> 115 114 116 115 <p> … … 122 121 end defaultComponentName; 123 122 124 class defaultComponentPrefixes "defaultComponentPrefixes" 125 126 annotation (Documentation(info="<html> 127 <h3><font color=\"#008000\" size=5>defaultComponentPrefixes</font></h3> 123 class defaultComponentPrefixes "defaultComponentPrefixes" 124 125 annotation (Documentation(info="<html> 128 126 <p> 129 127 Default prefixes when dragging component 130 128 </p> 131 129 132 <h 3><font color=\"#008000\">Examples</font></h3>130 <h4><font color=\"#008000\">Examples</font></h4> 133 131 134 132 <pre><b>annotation</b>(defaultComponentPrefixes=\"inner\", … … 136 134 </pre> 137 135 138 <h 3><font color=\"#008000\">Syntax</font></h3>136 <h4><font color=\"#008000\">Syntax</font></h4> 139 137 140 138 <pre> <b>annotation</b>\"(\" defaultComponentPrefixes \"=\" STRING \")\" … … 142 140 143 141 144 <h 3><font color=\"#008000\">Description</font></h3>142 <h4><font color=\"#008000\">Description</font></h4> 145 143 146 144 <p> … … 151 149 end defaultComponentPrefixes; 152 150 153 class derivative "derivative" 154 155 annotation (Documentation(info="<html> 156 <h3><font color=\"#008000\" size=5>derivative</font></h3> 151 class derivative "derivative" 152 153 annotation (Documentation(info="<html> 157 154 <p> 158 155 Define derivative of function 159 156 </p> 160 157 161 <h 3><font color=\"#008000\">Examples</font></h3>158 <h4><font color=\"#008000\">Examples</font></h4> 162 159 163 160 <pre><b>function</b> foo0 <b>annotation</b>(derivative=foo1); <b>end</b> foo0; … … 168 165 169 166 170 <h 3><font color=\"#008000\">Description</font></h3>167 <h4><font color=\"#008000\">Description</font></h4> 171 168 172 169 <p> … … 334 331 end derivative; 335 332 336 class Dialog "Dialog" 337 338 annotation (Documentation(info="<html> 339 <h3><font color=\"#008000\" size=5>Dialog</font></h3> 333 class Dialog "Dialog" 334 335 annotation (Documentation(info="<html> 340 336 <p> 341 337 Define graphical layout of parameter menu 342 338 </p> 343 339 344 <h 3><font color=\"#008000\">Examples</font></h3>340 <h4><font color=\"#008000\">Examples</font></h4> 345 341 346 342 <pre><b>model</b> BodyShape … … 354 350 </pre> 355 351 356 <h 3><font color=\"#008000\">Syntax</font></h3>352 <h4><font color=\"#008000\">Syntax</font></h4> 357 353 358 354 <pre> <b>annotation</b>(Dialog(enable = parameter-expression, tab = \"tab\", group = \"group\")) … … 360 356 361 357 362 <h 3><font color=\"#008000\">Description</font></h3>358 <h4><font color=\"#008000\">Description</font></h4> 363 359 364 360 <p> … … 380 376 end Dialog; 381 377 382 class Documentation "Documentation" 383 384 annotation (Documentation(info="<html> 385 <h3><font color=\"#008000\" size=5>Documentation</font></h3> 378 class Documentation "Documentation" 379 380 annotation (Documentation(info="<html> 386 381 <p> 387 382 Annotations for documentation 388 383 </p> 389 384 390 <h 3><font color=\"#008000\">Syntax</font></h3>385 <h4><font color=\"#008000\">Syntax</font></h4> 391 386 392 387 <pre>documentation_annotation: … … 395 390 </pre> 396 391 397 <h 3><font color=\"#008000\">Description</font></h3>392 <h4><font color=\"#008000\">Description</font></h4> 398 393 <P> 399 394 The \"Documentation\" annotation can contain the \"info\" annotation giving a textual description, the \"revisions\" annotation giving a list of revisions and other annotations defined by a tool [The \"revisions\" documentation may be omitted in printed documentation]. How the tool interprets the information in \"Documentation\" is unspecified. Within a string of the \"Documentation\" annotation, the tags <HTML> and </HTML> or <html> and </html> define optionally begin and end of content that is HTML encoded. Links to Modelica classes may be defined with the HTML link command using scheme \"Modelica\", e.g., … … 412 407 </html>")); 413 408 end Documentation; 414 415 416 417 418 419 420 409 421 410 annotation (Documentation(info="<html> 422 411 <p> … … 426 415 427 416 </html>")); 428 class Evaluate "Evaluate" 429 430 annotation (Documentation(info="<html> 431 <h3><font color=\"#008000\" size=5>Evaluate</font></h3> 417 class DynamicSelect "DynamicSelect" 418 419 annotation (Documentation(info="<html> 420 <p> 421 Define schematic animation of diagram layer 422 </p> 423 424 <h4><font color=\"#008000\">Examples</font></h4> 425 426 <blockquote> 427 <p> 428 The level of a tank is animated by a rectangle expanding in vertical direction and its color depending on a variable overflow: 429 </p> 430 431 <pre><b>annotation</b>( 432 Icon(graphics={Rectangle( 433 extent=<b>DynamicSelect</b>({{0,0},{20,20}},{{0,0},{20,level}}), 434 fillColor=<b>DynamicSelect</b>({0,0,255}, 435 <b>if</b> overflow <b>then</b> {255,0,0} <b>else</b> {0,0,255}))} 436 ); 437 </pre></blockquote> 438 439 440 <h4><font color=\"#008000\">Description</font></h4> 441 442 <p> 443 Any value (coordinates, color, text, etc) in graphical annotations can be dependent on class variables using the DynamicSelect expression. DynamicSelect has the syntax of a function call with two arguments, where the first argument specifies the value of the editing state and the second argument the value of the non-editing state. The first argument must be a literal expression 444 and this value is used for the annotation when editing and/or browsing the diagram layer. 445 The second argument may contain references to variables to enable a dynamic behavior 446 and the actual value is used for the annotation for schematic animation 447 of the diagram layer, e.g., after a simulation. 448 </p> 449 450 </html>")); 451 end DynamicSelect; 452 453 class Evaluate "Evaluate" 454 455 annotation (Documentation(info="<html> 432 456 <p> 433 457 Annotation for code generation (evaluate parameter value) 434 458 </p> 435 459 436 <h 3><font color=\"#008000\">Syntax</font></h3>460 <h4><font color=\"#008000\">Syntax</font></h4> 437 461 438 462 <pre> <b>annotation</b>\"(\" Evaluate \"=\" ( <b>false</b> | <b>true</b> ) \") … … 440 464 441 465 442 <h 3><font color=\"#008000\">Description</font></h3>466 <h4><font color=\"#008000\">Description</font></h4> 443 467 444 468 <p> … … 461 485 end Evaluate; 462 486 463 class experiment "experiment" 464 465 annotation (Documentation(info="<html> 466 <h3><font color=\"#008000\" size=5>experiment</font></h3> 487 class experiment "experiment" 488 489 annotation (Documentation(info="<html> 467 490 <p> 468 491 Define default experiment parameters 469 492 </p> 470 493 471 <h 3><font color=\"#008000\">Examples</font></h3>494 <h4><font color=\"#008000\">Examples</font></h4> 472 495 473 496 <pre><b>annotation</b>(experiment(StartTime=0, StopTime=5, Tolerance=1e-6)) … … 475 498 476 499 477 <h 3><font color=\"#008000\">Syntax</font></h3>500 <h4><font color=\"#008000\">Syntax</font></h4> 478 501 479 502 <pre>experiment_annotation: … … 487 510 488 511 489 <h 3><font color=\"#008000\">Description</font></h3>512 <h4><font color=\"#008000\">Description</font></h4> 490 513 491 514 <p> … … 496 519 end experiment; 497 520 498 class HideResult "HideResult" 499 500 annotation (Documentation(info="<html> 501 <h3><font color=\"#008000\" size=5>HideResult</font></h3> 521 class HideResult "HideResult" 522 523 annotation (Documentation(info="<html> 502 524 <p> 503 525 Annotation for code generation (hide result) 504 526 </p> 505 527 506 <h 3><font color=\"#008000\">Syntax</font></h3>528 <h4><font color=\"#008000\">Syntax</font></h4> 507 529 508 530 <pre> <b>annotation</b>\"(\" HideResult \"=\" ( <b>false</b> | <b>true</b> ) \") … … 510 532 511 533 512 <h 3><font color=\"#008000\">Description</font></h3>534 <h4><font color=\"#008000\">Description</font></h4> 513 535 514 536 <p> … … 527 549 end HideResult; 528 550 529 class Inline "Inline" 530 531 annotation (Documentation(info="<html> 532 <h3><font color=\"#008000\" size=5>Inline</font></h3> 551 class Inline "Inline" 552 553 annotation (Documentation(info="<html> 533 554 <p> 534 555 Annotation for code generation (inline function body) 535 556 </p> 536 557 537 <h 3><font color=\"#008000\">Syntax</font></h3>558 <h4><font color=\"#008000\">Syntax</font></h4> 538 559 539 560 <pre> <b>annotation</b>\"(\" Inline \"=\" ( <b>false</b> | <b>true</b> ) \") … … 541 562 542 563 543 <h 3><font color=\"#008000\">Description</font></h3>564 <h4><font color=\"#008000\">Description</font></h4> 544 565 545 566 <p> … … 563 584 end Inline; 564 585 565 class LateInline "LateInline" 566 567 annotation (Documentation(info="<html> 568 <h3><font color=\"#008000\" size=5>LateInline</font></h3> 586 class LateInline "LateInline" 587 588 annotation (Documentation(info="<html> 569 589 <p> 570 590 Annotation for code generation (inline function body after symbolic processing) 571 591 </p> 572 592 573 <h 3><font color=\"#008000\">Syntax</font></h3>593 <h4><font color=\"#008000\">Syntax</font></h4> 574 594 575 595 <pre> <b>annotation</b>\"(\" LateInline \"=\" ( <b>false</b> | <b>true</b> ) \") … … 577 597 578 598 579 <h 3><font color=\"#008000\">Description</font></h3>599 <h4><font color=\"#008000\">Description</font></h4> 580 600 581 601 <p> … … 598 618 end LateInline; 599 619 600 class missingInnerMessage "missingInnerMessage" 601 602 annotation (Documentation(info="<html> 603 <h3><font color=\"#008000\" size=5>missingInnerMessage</font></h3> 620 class missingInnerMessage "missingInnerMessage" 621 622 annotation (Documentation(info="<html> 604 623 <p> 605 624 Warning message, if inner declaration is missing 606 625 </p> 607 626 608 <h 3><font color=\"#008000\">Examples</font></h3>627 <h4><font color=\"#008000\">Examples</font></h4> 609 628 610 629 <pre><b>model</b> World … … 616 635 </pre> 617 636 618 <h 3><font color=\"#008000\">Syntax</font></h3>637 <h4><font color=\"#008000\">Syntax</font></h4> 619 638 620 639 <pre> <b>annotation</b>\"(\" missingInnerMessage \"=\" STRING \")\" … … 622 641 623 642 624 <h 3><font color=\"#008000\">Description</font></h3>643 <h4><font color=\"#008000\">Description</font></h4> 625 644 626 645 <p> … … 631 650 end missingInnerMessage; 632 651 633 class PreferredView "preferredView" 634 635 annotation (Documentation(info="<html> 636 <h3><font color=\"#008000\" size=5>preferredView</font></h3> 652 class PreferredView "preferredView" 653 654 annotation (Documentation(info="<html> 637 655 <p> 638 656 Define default view when selecting class 639 657 </p> 640 658 641 <h 3><font color=\"#008000\">Syntax</font></h3>659 <h4><font color=\"#008000\">Syntax</font></h4> 642 660 643 661 <pre>preferred view_annotation: … … 646 664 647 665 648 <h 3><font color=\"#008000\">Description</font></h3>666 <h4><font color=\"#008000\">Description</font></h4> 649 667 650 668 <p> … … 655 673 end PreferredView; 656 674 657 class smoothOrder "smoothOrder" 658 659 annotation (Documentation(info="<html> 660 <h3><font color=\"#008000\" size=5>smoothOrder</font></h3> 675 class smoothOrder "smoothOrder" 676 677 annotation (Documentation(info="<html> 661 678 <p> 662 679 Define differentiability of function body 663 680 </p> 664 681 665 <h 3><font color=\"#008000\">Syntax</font></h3>682 <h4><font color=\"#008000\">Syntax</font></h4> 666 683 667 684 <pre> <b>annotation</b>\"(\" smoothOrder \"=\" UNSIGNED_INTEGER \")\" … … 669 686 670 687 671 <h 3><font color=\"#008000\">Description</font></h3>688 <h4><font color=\"#008000\">Description</font></h4> 672 689 673 690 <p> … … 686 703 end smoothOrder; 687 704 688 class version "version" 689 690 annotation (Documentation(info="<html> 691 <h3><font color=\"#008000\" size=5>Version</font></h3> 705 class version "version" 706 707 annotation (Documentation(info="<html> 692 708 <p> 693 709 Define version information of package 694 710 </p> 695 711 696 <h 3><font color=\"#008000\">Examples</font></h3>712 <h4><font color=\"#008000\">Examples</font></h4> 697 713 698 714 <pre><b>package</b> Modelica … … 722 738 723 739 724 <h 3><font color=\"#008000\">Description</font></h3>740 <h4><font color=\"#008000\">Description</font></h4> 725 741 726 742 <p> … … 793 809 end version; 794 810 795 class unassignedMessage "unassignedMessage" 796 797 annotation (Documentation(info="<html> 798 <h3><font color=\"#008000\" size=5>unassignedMessage</font></h3> 811 class unassignedMessage "unassignedMessage" 812 813 annotation (Documentation(info="<html> 799 814 <p> 800 815 Error message, if variable is not assigned 801 816 </p> 802 817 803 <h 3><font color=\"#008000\">Examples</font></h3>818 <h4><font color=\"#008000\">Examples</font></h4> 804 819 805 820 <pre><b>connector</b> Frame \"Frame of a mechanical system\" … … 815 830 816 831 817 <h 3><font color=\"#008000\">Syntax</font></h3>832 <h4><font color=\"#008000\">Syntax</font></h4> 818 833 819 834 <pre> <b>annotation</b>\"(\" unassignedMessage \"=\" STRING \")\" … … 821 836 822 837 823 <h 3><font color=\"#008000\">Description</font></h3>838 <h4><font color=\"#008000\">Description</font></h4> 824 839 825 840 <p> … … 832 847 833 848 834 package Classes "Classes (model, function, ...)" 835 class Block "block" 836 837 annotation (Documentation(info="<html> 838 <h3><font color=\"#008000\" size=5>block</font></h3> 849 package Classes "Classes (model, function, ...)" 850 class Block "block" 851 852 annotation (Documentation(info="<html> 839 853 <p> 840 854 Define specialized class <i>block</i> 841 855 </p> 842 <h 3><font color=\"#008000\">Examples</font></h3>856 <h4><font color=\"#008000\">Examples</font></h4> 843 857 844 858 <pre><b>block</b> Integrator … … 852 866 <b>end</b> Integrator;</pre> 853 867 854 <h 3><font color=\"#008000\">Syntax</font></h3>868 <h4><font color=\"#008000\">Syntax</font></h4> 855 869 856 870 <PRE> [ <B>encapsulated</B> ][ <B>partial </B>] <B>block</B> … … 864 878 <p>See Modelica Language Specification for further details.</p> 865 879 866 <h 3><font color=\"#008000\">Description</font></h3>880 <h4><font color=\"#008000\">Description</font></h4> 867 881 <P> 868 882 A block class is the same as a model class … … 876 890 </html>")); 877 891 end Block; 878 879 class Class "class" 880 881 annotation (Documentation(info="<html> 882 <h3><font color=\"#008000\" size=5>class</font></h3> 892 893 class Class "class" 894 895 annotation (Documentation(info="<html> 883 896 <p> 884 897 Define class 885 898 </p> 886 <h 3><font color=\"#008000\">Examples</font></h3>899 <h4><font color=\"#008000\">Examples</font></h4> 887 900 888 901 <pre><b>class</b> MyTable … … 897 910 <b>end</b> MyTable;</pre> 898 911 899 <h 3><font color=\"#008000\">Syntax</font></h3>912 <h4><font color=\"#008000\">Syntax</font></h4> 900 913 <PRE> [ <B>encapsulated</B> ][ <B>partial </B>] <B>class</B> 901 914 IDENT class_specifier … … 908 921 <p>See Modelica Language Specification for further details.</p> 909 922 910 <h 3><font color=\"#008000\">Description</font></h3>923 <h4><font color=\"#008000\">Description</font></h4> 911 924 912 925 <p> … … 919 932 </html>")); 920 933 end Class; 921 922 class Connector "connector" 923 924 annotation (Documentation(info="<html> 925 <h3><font color=\"#008000\" size=5>connector</font></h3> 934 935 class Connector "connector" 936 937 annotation (Documentation(info="<html> 926 938 <p> 927 939 Define specialized class <i>connector</i> 928 940 </p> 929 <h 3><font color=\"#008000\">Examples</font></h3>941 <h4><font color=\"#008000\">Examples</font></h4> 930 942 931 943 <pre><b>connector</b> flange … … 934 946 <b>end</b> flange;</pre> 935 947 936 <h 3><font color=\"#008000\">Syntax</font></h3>948 <h4><font color=\"#008000\">Syntax</font></h4> 937 949 <PRE> [ <B>encapsulated</B> ][ <B>partial </B>] <B>connector</B> 938 950 IDENT class_specifier … … 945 957 <p>See Modelica Language Specification for further details.</p> 946 958 947 <h 3><font color=\"#008000\">Description</font></h3>959 <h4><font color=\"#008000\">Description</font></h4> 948 960 <P>The keyword connector is used to define connectors, which are used 949 961 in connect statements. In connectors, no equations are allowed in the … … 954 966 </html>")); 955 967 end Connector; 956 957 class Function "function" 958 959 annotation (Documentation(info="<html> 960 <h3><font color=\"#008000\" size=5>function</font></h3> 968 969 class Function "function" 970 971 annotation (Documentation(info="<html> 961 972 <p> 962 973 Define specialized class <i>function</i> 963 974 </p> 964 <h 3><font color=\"#008000\">Examples</font></h3>975 <h4><font color=\"#008000\">Examples</font></h4> 965 976 966 977 <pre><b>function</b> si … … 973 984 <p align=\"center\"><img src=\"../Images/function.png\" width=\"400\" height=\"280\" alt=\"Simulation result\"></p> 974 985 975 <h 3><font color=\"#008000\">Syntax</font></h3>986 <h4><font color=\"#008000\">Syntax</font></h4> 976 987 977 988 <PRE> [ <B>encapsulated</B> ][ <B>partial </B>] <B>function</B> … … 985 996 <p>See Modelica Language Specification for further details.</p> 986 997 987 <h 3><font color=\"#008000\">Description</font></h3>998 <h4><font color=\"#008000\">Description</font></h4> 988 999 989 1000 <P>The keyword function is used to define functions as known from programming … … 1077 1088 </html>")); 1078 1089 end Function;
