nl.tudelft.simulation.dsol.interpreter.operations
Class InterpreterFactory

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface nl.tudelft.simulation.dsol.interpreter.operations.FactoryInterface
BREAKPOINT, IMPDEP1, IMPDEP2
 
Constructor Summary
InterpreterFactory()
          constructs a new InterpreterFactory
 
Method Summary
 Operation readOperation(DataInput dataInput, int startBytePosition)
          resolves an operation for an operandCode
 Operation readOperation(int operand, DataInput dataInput, int startBytePositon)
          resolves an operation for an operandCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterpreterFactory

public InterpreterFactory()
constructs a new InterpreterFactory

Method Detail

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 dataInput
startBytePosition - 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 operand
dataInput - the dataInput
startBytePositon - 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.