Constructor
new ConnectionsTable(bullGamma)
Constructs a new instance of ConnectionsTable
Parameters:
Name | Type | Description |
---|---|---|
bullGamma |
the machine to which this drum is attached |
Methods
_getConnections(startIndex, stopIndex, step)
Returns the instructions digits that by value and ordered by instruction index and hex digit index.
The parameters give the instructions to be considered
Parameters:
Name | Type | Description |
---|---|---|
startIndex |
The index of the first instruction | |
stopIndex |
The index of the last instruction (excluded) | |
step |
The step to skip some indices |
getConnectionsBottomLeft()
Returns the instructions digits that by value and ordered by instruction index and hex digit index.
The instructions considered are only the ones on the bottom left of the table
Returns:
An array of arrays
getConnectionsBottomRight()
Returns the instructions digits that by value and ordered by instruction index and hex digit index.
The instructions considered are only the ones on the bottom right of the table
Returns:
An array of arrays
getConnectionsTopLeft()
Returns the instructions digits that by value and ordered by instruction index and hex digit index.
The instructions considered are only the ones on the top left of the table
Returns:
An array of arrays
getConnectionsTopRight()
Returns the instructions digits that by value and ordered by instruction index and hex digit index.
The instructions considered are only the ones on the top right of the table
Returns:
An array of arrays
setHexValue(instIndex, hexIndex, hexValue)
Sets a value for the given instruction digit
Parameters:
Name | Type | Description |
---|---|---|
instIndex |
The instruction index in the Series3 | |
hexIndex |
The index of the hex digit in the instruction (0: OF, 1: OD, 2: AD, 3: TO) | |
hexValue |
The value of the hex digit in base 10 (from 0 to 15) |
setInstructions(hexCode)
Set the Series3's content with hex values
Parameters:
Name | Type | Description |
---|---|---|
hexCode |
a String that represents the new hex values of the array |