Technical data

DOC-01-TELAS-CRG-4 ASTi ACE Studio Components Reference Guide Rev.M
98 Copyright © 2014 Advanced Simulation Technology inc.
5.12. NumToString
Summary: The NumToString component takes a set of input numbers and converts
them into a single string for use with the Radio Transceiver. This allows host
control of common DIS parameters for radios by setting the DomainNameIn and
ProtocolIDIn fields of the Radio Transceiver.
Description: NumToString takes up to four input numbers and concatenates them
together to form a string. A prefix, suffix, and character separator are included to
help fit the ProtocolID and DomainName syntax for radios. The most common use
of this component is to set the Exercise ID of the radio by creating a string such as:
DIS:5
The string above can be used in the Domain Name In field of the Transceiver
component and will set the DIS Exercise ID of the radio to 5. With this method
Input0 is set to 5, the Prefix is set to "DIS:" and the InputCount is set to 1. Input0
can also be set dynamically from another component, allowing the Exercise ID of
the radio to be changed as needed.
The NumToString is also used to produce strings such as:
DIS:80.1.3.17
This string can be used in the Protocol ID In Field of a Transceiver and will set the
Site ID = 80, Application ID = 1, Entity ID = 3, and the Radio ID = 17. With this
method, Input0 through 3 can be dynamically set from another component or Host
In, allowing users to change any of the DIS IDs for a radio on an as needed basis. In
order to create the string above, the prefix should be set to "DIS:" and the
InputCount should be set to 4. Additionally, Input0 through 3 are set to digits used
above and a period is used for the separator.
Control Inputs
Input0
Type Default Value
int32 0
Description: This input turns into part of the output string based on
the conditional parameters.
If used for Domain Name:
Domain Name = DIS Exercise ID
If used for Protocol ID:
Protocol ID = DIS Entity ID or DIS Site ID
Input1
Type Default Value
int32 0
Description: This input turns into part of the output string based on
the conditional parameters.
Used for:
Protocol ID = DIS Radio ID or DIS Application ID
Input2
Type Default Value
int32 0
Description: This input turns into part of the output string based on
the conditional parameters.
Used for:
Protocol ID = DIS Entity ID