Difference between revisions of "TemplateInput and TemplateOutput Attributes"

Line 1: Line 1:
''These attributes are new to release 4.2.''
+
[[Category: Attributes]]
  
The [[:Category:Attributes|attributes]] [[TemplateInput]] and [[TemplateOutput]] can be used to mark a variable within a module as being that module's primary input or primary output.  The attributes apply only to Module nodes, and when set, the attribute should contain just the identifier of the variable that is to serve as the respective input or output.  The variable listed must be contained within the module, either directly or within a submodule.   
+
The [[attributes]] '''TemplateInput''' and '''TemplateOutput''' can be used to mark a variable within a module as being that module's primary input or primary output.  The attributes apply only to Module nodes, and when set, the attribute should contain just the identifier of the variable that is to serve as the respective input or output.  The variable listed must be contained within the module, either directly or within a submodule.   
  
When a module as its [[TemplateInput]] attribute properly set and you draw an arrow to that module, you are effectively drawing an arrow to its primary input node.  Likewise, when you draw an arrow from a module that has a [[TemplateOutput]] to another node, you are effectively drawing an arrow from its primary output to the other node.   
+
When a module as its '''TemplateInput''' attribute properly set and you draw an arrow to that module, you are effectively drawing an arrow to its primary input node.  Likewise, when you draw an arrow from a module that has a '''TemplateOutput''' to another node, you are effectively drawing an arrow from its primary output to the other node.   
  
 
These attributes enable capabilities for [[Model building by mouse]].  A module with primary inputs and outputs tagged via these attributes can serve as a ''Template module'' -- you can copy the template to create an "instantiation", and build your model simply by drawing arrows to or from these instantiated modules.  If you primary inputs are set up as lists or calls to functions that accept repeated parameters (using the [[Function Parameter Qualifiers#Ellipsis|ellipsis qualifier]]), then new inputs will be added to the primary input node's definition automatically.  See [[Model building by mouse]] for more details.
 
These attributes enable capabilities for [[Model building by mouse]].  A module with primary inputs and outputs tagged via these attributes can serve as a ''Template module'' -- you can copy the template to create an "instantiation", and build your model simply by drawing arrows to or from these instantiated modules.  If you primary inputs are set up as lists or calls to functions that accept repeated parameters (using the [[Function Parameter Qualifiers#Ellipsis|ellipsis qualifier]]), then new inputs will be added to the primary input node's definition automatically.  See [[Model building by mouse]] for more details.
  
= See Also =
+
==History==
 +
Introduced in [[Analytica 4.2]].
  
 +
== See Also ==
 +
* [[Attributes]]
 
* [[Model building by mouse]]
 
* [[Model building by mouse]]
 +
* [[Function Parameter Qualifiers]]

Revision as of 23:23, 10 February 2016


The attributes TemplateInput and TemplateOutput can be used to mark a variable within a module as being that module's primary input or primary output. The attributes apply only to Module nodes, and when set, the attribute should contain just the identifier of the variable that is to serve as the respective input or output. The variable listed must be contained within the module, either directly or within a submodule.

When a module as its TemplateInput attribute properly set and you draw an arrow to that module, you are effectively drawing an arrow to its primary input node. Likewise, when you draw an arrow from a module that has a TemplateOutput to another node, you are effectively drawing an arrow from its primary output to the other node.

These attributes enable capabilities for Model building by mouse. A module with primary inputs and outputs tagged via these attributes can serve as a Template module -- you can copy the template to create an "instantiation", and build your model simply by drawing arrows to or from these instantiated modules. If you primary inputs are set up as lists or calls to functions that accept repeated parameters (using the ellipsis qualifier), then new inputs will be added to the primary input node's definition automatically. See Model building by mouse for more details.

History

Introduced in Analytica 4.2.

See Also

Comments


You are not allowed to post comments.