net.sf.magicproject.operation
Class OperationFactory

java.lang.Object
  extended by net.sf.magicproject.operation.OperationFactory

public final class OperationFactory
extends java.lang.Object

Since:
0.90
Author:
Fabrice Daugan

Method Summary
static Operation getOperation(int idOperation)
          Read and return the correponding operation to the specified operation identifiant
static Operation readNextOperation(java.io.InputStream inputFile)
          Read and return the next operation from specified inputFile Structure of InputStream : Data[size] idOperation [1]
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readNextOperation

public static Operation readNextOperation(java.io.InputStream inputFile)
                                   throws java.io.IOException
Read and return the next operation from specified inputFile

Parameters:
inputFile - the input stream where action will be read
Returns:
the next action read into of specified inputFile
Throws:
java.io.IOException - if error occurred during the reading process from the specified input stream

getOperation

public static Operation getOperation(int idOperation)
Read and return the correponding operation to the specified operation identifiant

Parameters:
idOperation - the operation identifiant
Returns:
the operation object corresponding to the specified operation identifiant


Copyright © 2003-2007 Magic-Project. All Rights Reserved.