com.partnersoft.maps.rover.codecs
Class RoverCodecV448
java.lang.Object
com.partnersoft.maps.rover.codecs.RoverCodecV448
- All Implemented Interfaces:
- RoverCodec
public class RoverCodecV448
- extends java.lang.Object
- implements RoverCodec
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoverCodecV448
public RoverCodecV448()
RoverCodecV448
public RoverCodecV448(XyBounds bounds)
RoverCodecV448
public RoverCodecV448(XyBounds bounds,
int precision)
readBlock
public RoverBlock readBlock(DynamicByteArray bytes)
throws RoverFormatException
- Description copied from interface:
RoverCodec
- Read a block from the given byte array.
- Specified by:
readBlock in interface RoverCodec
- Parameters:
bytes - encoded rover bytes
- Returns:
- block read
- Throws:
RoverFormatException
writeBlock
public void writeBlock(RoverBlock block,
DynamicByteArray bytes)
throws RoverFormatException
- Description copied from interface:
RoverCodec
- Write a block to the given byte array.
- Specified by:
writeBlock in interface RoverCodec
bytes - encoded rover bytes
- Throws:
RoverFormatException
execute
public void execute(DynamicByteArray bytecode,
RoverMachineRegister register,
RoverMachineActor actor)
throws java.io.IOException
- Description copied from interface:
RoverCodec
- Execute the given bytecode with a RoverMachine, storing data in the given register and sending events to the given actor.
This method should be as fast as possible. Avoid allocations, external calls,
or anything else that will compromise performance. Comment out log statements
rather than testing for log.isDebugEnabled(). Etc.
- Specified by:
execute in interface RoverCodec
- Throws:
java.io.IOException