Exception message for illegal type identifier
Indicates tape head moving left (head index - 1)
Indicates tape head moving Neither left nor right (head index +/- 0 = head index)
Indicates tape head moving right (head index - 1)
Creates a MoveDirection
object from a String
Creates a MoveDirection
object from a String
the argument determining the MoveDirection which is returned
a MoveDirection object
Creates a MoveDirection
object from an Int
Creates a MoveDirection
object from an Int
the argument determining the MoveDirection which is returned
a MoveDirection object
Results:
Results:
1. Any negative Int
value or case-insensitive match to MoveDirection.Left.name->
MoveDirection.Left
2. Any positive Int
value or case-insensitive match to MoveDirection.Right.name->
MoveDirection.Right
3. A Zero (0
) Int
value or case-insensitive match to MoveDirection.Neither.name->
MoveDirection.Neither
the String
to parse into a MoveDirection
a MoveDirection object based on the parameters
Indicates the directions in which the tape head can move:
1. MoveDirection.Left -> Left (head index - 1)
2. MoveDirection.Right -> Right (head index + 1)
3. MoveDirection.Neither -> Neither left nor right (head index +/- 0 = head index)