nl.tudelft.simulation.dsol.interpreter.operations
Interface FactoryInterface

All Known Implementing Classes:
CustomFactory, InterpreterFactory, ProcessFactory, ReflectionFactory

public interface FactoryInterface

The factoryInterface defines the required behavior for operation factories mapping opcodes to operations.

(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Since:
1.4
Version:
1.2 Apr 6, 2004
Author:
Peter Jacobs

Field Summary
static int BREAKPOINT
          RESERVED OPCODE
static int IMPDEP1
          RESERVED OPCODE
static int IMPDEP2
          RESERVED OPCODE
 
Method Summary
 Operation readOperation(DataInput dataInput, int startBytePosition)
          resolves an operation for an operandCode
 Operation readOperation(int operand, DataInput dataInput, int startBytePosition)
          resolves an operation for an operandCode
 

Field Detail

BREAKPOINT

static final int BREAKPOINT
RESERVED OPCODE

See Also:
Constant Field Values

IMPDEP1

static final int IMPDEP1
RESERVED OPCODE

See Also:
Constant Field Values

IMPDEP2

static final int IMPDEP2
RESERVED OPCODE

See Also:
Constant Field Values
Method Detail

readOperation

Operation readOperation(DataInput dataInput,
                        int startBytePosition)
                        throws IOException
resolves an operation for an operandCode

Parameters:
dataInput - the dataInput
startBytePosition - the position in the byteStream
Returns:
Operation the operation
Throws:
IOException - on IOException

readOperation

Operation readOperation(int operand,
                        DataInput dataInput,
                        int startBytePosition)
                        throws IOException
resolves an operation for an operandCode

Parameters:
operand - the operand
dataInput - the dataInput
startBytePosition - the position in the byteStream
Returns:
Operation the operation
Throws:
IOException - on IOException


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.