A collection of helper utilities for our Evoware compiler.
- Source:
Methods
-
<static> decode()
-
Decode a character to an integer.
- Source:
-
<static> encode(n)
-
Encode an integer as an ASCII character. Evoware uses this to generate a string representing a list of wells or sites.
Parameters:
Name Type Description n
number integer to encode as a character
- Source:
Returns:
a single-character string that represents the number
- Type
- string
-
<static> hex(n)
-
Convert the number to hex. Number should be between 0 and 15.
Parameters:
Name Type Description n
integer number between 0 and 15
- Source:
Returns:
- Type
- char
-
<static> parseEncodedIndexes(encoded)
-
Takes an encoding of indexes on a 2D surface (as found in the file Carrier.cfg) and
Parameters:
Name Type Description encoded
string an encoded list of indexes
- Source:
Returns:
tuple of [rows on surface, columns on surface, selected indexes on surface]
- Type
- array
-
<static> splitSemicolons(line)
-
Split an evoware carrier line into its components. The first component is an integer that identifies the type of line. The remaining components are returned as a list of string.
Parameters:
Name Type Description line
string a text line from Evoware's carrier file
- Source:
Returns:
Returns a pair [kind, items], where kind is an integer identifying the type of line, and items is a string array of the remaining components of the line.
- Type
- array