nl.tudelft.simulation.dsol.interpreter.operations
Class InterpreterFactory
java.lang.Object
nl.tudelft.simulation.dsol.interpreter.operations.InterpreterFactory
- All Implemented Interfaces:
- FactoryInterface
- Direct Known Subclasses:
- CustomFactory, ReflectionFactory
public class InterpreterFactory
- extends Object
- implements FactoryInterface
A InterpreterFactory
(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.
- Version:
- 1.0 Jan 14, 2004
- Author:
- Peter Jacobs
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterpreterFactory
public InterpreterFactory()
- constructs a new InterpreterFactory
readOperation
public Operation readOperation(DataInput dataInput,
int startBytePosition)
throws IOException
- Description copied from interface:
FactoryInterface
- resolves an operation for an operandCode
- Specified by:
readOperation
in interface FactoryInterface
- Parameters:
dataInput
- the dataInputstartBytePosition
- the position in the byteStream
- Returns:
- Operation the operation
- Throws:
IOException
- on IOException- See Also:
FactoryInterface.readOperation(java.io.DataInput,
int)
readOperation
public Operation readOperation(int operand,
DataInput dataInput,
int startBytePositon)
throws IOException
- Description copied from interface:
FactoryInterface
- resolves an operation for an operandCode
- Specified by:
readOperation
in interface FactoryInterface
- Parameters:
operand
- the operanddataInput
- the dataInputstartBytePositon
- the position in the byteStream
- Returns:
- Operation the operation
- Throws:
IOException
- on IOException- See Also:
FactoryInterface.readOperation(int,
java.io.DataInput, int)
Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.