Difference between revisions of "VAT Formula parameter"
imported>Repenning |
imported>Repenning |
||
Line 1: | Line 1: | ||
− | Visual AgenTalk (VAT) Formula Syntax is used to create VAT formulas | + | Visual AgenTalk (VAT) Formula Syntax is used to create VAT formulas |
+ | <br> | ||
{| cellpadding="10" cellspacing="0" border="0" width="100%" | {| cellpadding="10" cellspacing="0" border="0" width="100%" | ||
|- | |- | ||
| align="left" valign="top" colspan="1" | | | align="left" valign="top" colspan="1" | | ||
− | + | | align="left" valign="top" | | |
− | | align="left" valign="top" | | ||
− | |||
{| border="1" cellpadding="5" cellspacing="1" width="985" | {| border="1" cellpadding="5" cellspacing="1" width="985" | ||
|- bgcolor="#ffcccc" | |- bgcolor="#ffcccc" | ||
Line 21: | Line 20: | ||
| width="265" valign="top" bgcolor="#b0e0e6" | Basic arithmetic operations | | width="265" valign="top" bgcolor="#b0e0e6" | Basic arithmetic operations | ||
− | | width="131" valign="top" bgcolor="#b0e0e6" | 3 + 4 | + | | width="131" valign="top" bgcolor="#b0e0e6" | |
− | | width="347" valign="top" bgcolor="#b0e0e6" | 7 | + | 3 + 4 |
+ | |||
+ | x * (3 - y) | ||
+ | |||
+ | | width="347" valign="top" bgcolor="#b0e0e6" | | ||
+ | 7 | ||
+ | |||
+ | f(x, y) | ||
+ | |||
|- align="left" valign="top" bgcolor="#ffffcc" | |- align="left" valign="top" bgcolor="#ffffcc" | ||
| width="80" bgcolor="white" | '''Agent Attribute Access''' | | width="80" bgcolor="white" | '''Agent Attribute Access''' | ||
Line 37: | Line 44: | ||
| width="92" bgcolor="#87cefa" | ''attribute''[up]<br> | | width="92" bgcolor="#87cefa" | ''attribute''[up]<br> | ||
''attribute''[down]<br> ''attribute''[left]<br> ''attribute''[right]<br> ''attribute''[top]<br> ''attribute''[bottom]<br> ''attribute''[row, col]<br> | ''attribute''[down]<br> ''attribute''[left]<br> ''attribute''[right]<br> ''attribute''[top]<br> ''attribute''[bottom]<br> ''attribute''[row, col]<br> | ||
+ | |||
+ | ''attribute''[stacked_below] | ||
+ | |||
+ | ''attribute''[stacked_above] | ||
+ | |||
+ | ''attribute''[layer_above] | ||
+ | |||
+ | ''attribute''[layer_below] | ||
| width="265" bgcolor="#87cefa" | Access the value of other agents' attribute using relative coordinates.<br> | | width="265" bgcolor="#87cefa" | Access the value of other agents' attribute using relative coordinates.<br> | ||
Line 51: | Line 66: | ||
| width="92" bgcolor="#b0e0e6" | @''simproperty'' | | width="92" bgcolor="#b0e0e6" | @''simproperty'' | ||
| width="265" bgcolor="#b0e0e6" | Access the value of a global simulation property<br> | | width="265" bgcolor="#b0e0e6" | Access the value of a global simulation property<br> | ||
− | <br> | + | <br>'''Simulation Properties''' are used to share information between agents. Users can inspect and edit the values of simulation properties using the simulation property editor. The "@" sign is used to differentiate the simulation properties from agent attributes. |
| width="131" bgcolor="#b0e0e6" | @Time | | width="131" bgcolor="#b0e0e6" | @Time | ||
Line 81: | Line 96: | ||
| width="347" bgcolor="#87cefa" | returns decimal number between 0 (inclusive) and 4.0 (exclusive)<br> | | width="347" bgcolor="#87cefa" | returns decimal number between 0 (inclusive) and 4.0 (exclusive)<br> | ||
− | <br> returns either | + | <br> returns either 0, 1, 2, or 3<br> |
|- align="left" valign="top" bgcolor="#ffffcc" | |- align="left" valign="top" bgcolor="#ffffcc" | ||
Line 100: | Line 115: | ||
| width="347" bgcolor="#b0e0e6" | 1 | | width="347" bgcolor="#b0e0e6" | 1 | ||
|} | |} | ||
− | |||
− | <br> | + | <br> <br> |
<br> | <br> | ||
{| width="100%" border="0" cellpadding="0" cellspacing="0" | {| width="100%" border="0" cellpadding="0" cellspacing="0" | ||
− | | | + | |} |
|} | |} |
Revision as of 01:15, 20 April 2012
Visual AgenTalk (VAT) Formula Syntax is used to create VAT formulas
|