nl.tudelft.simulation.dsol.interpreter.operations.custom
Class CustomFactory

java.lang.Object
  extended by nl.tudelft.simulation.dsol.interpreter.operations.InterpreterFactory
      extended by nl.tudelft.simulation.dsol.interpreter.operations.custom.CustomFactory
All Implemented Interfaces:
FactoryInterface
Direct Known Subclasses:
ProcessFactory

public class CustomFactory
extends InterpreterFactory

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
protected  InterpreterOracleInterface interpreterOracle
          the interpreterOracle to use
 
Fields inherited from interface nl.tudelft.simulation.dsol.interpreter.operations.FactoryInterface
BREAKPOINT, IMPDEP1, IMPDEP2
 
Constructor Summary
CustomFactory(InterpreterOracleInterface interpreterOracle)
          constructs a new InterpreterFactory
 
Method Summary
 Operation readOperation(int operand, DataInput dataInput, int startBytePostion)
          resolves an operation for an operandCode
 
Methods inherited from class nl.tudelft.simulation.dsol.interpreter.operations.InterpreterFactory
readOperation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

interpreterOracle

protected InterpreterOracleInterface interpreterOracle
the interpreterOracle to use

Constructor Detail

CustomFactory

public CustomFactory(InterpreterOracleInterface interpreterOracle)
constructs a new InterpreterFactory

Parameters:
interpreterOracle - the oracle to use
Method Detail

readOperation

public Operation readOperation(int operand,
                               DataInput dataInput,
                               int startBytePostion)
                        throws IOException
Description copied from interface: FactoryInterface
resolves an operation for an operandCode

Specified by:
readOperation in interface FactoryInterface
Overrides:
readOperation in class InterpreterFactory
Parameters:
operand - the operand
dataInput - the dataInput
startBytePostion - the position in the byteStream
Returns:
Operation the operation
Throws:
IOException - on IOException
See Also:
#readOperation(int, java.io.DataInput, int)


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