net.simplace.sim.io.interfaces.FWSimInterface

IO integrates resources and output Interface can be used by input and output components Interface is able to abstract data access format as Database via SQL DatabaseInterface Excel (csv) CSVInterface XML XMLInterface MEMORY MEMORYInterface Uses File Access Pool and Connection Pool


public abstract class FWSimInterface {
// Protected Constructors
protected FWSimInterface(String aName, FWSimInterface.INTERFACE_TYPE
aInterfaceType, Element aInterfaceElement);
protected FWSimInterface(String aName, FWSimInterface.INTERFACE_TYPE
aInterfaceType, int aPoolsize);

// Protected Instance Variables
protected LinkedHashMap iColumnMap;
protected LinkedHashMap iIntColumnNames;
protected HashMap iColumnNamesInt;

// Class Methods
public static FWSimInterface createInterface(Element aInterfaceElement);

factory method creating an interface instance concerning the given data type
returns generic FWSimInterface
public static FWSimInterface createInterface(String aName,
FWSimInterface.INTERFACE_TYPE aInterfaceType, Element aInterfaceElement);

factory method creating an interface instance concerning the given data type
returns generic FWSimInterface
protected static Object[] transformArrays(List tArrays, FWSimVariable[]
aHeaderVariables);

Transforms the object[j]-List with size (i) to Object[j] of Object[i]
returns the transformed Array
protected static Object readColArray(String aProjectID, LinkedHashMap
aHeaderVariables, MultiHashMap aHeaderColModeMatch, List aObjects,
LinkedHashMap aKeyMap, Object[] aArray);

protected static MultiHashMap checkHeaderForColMode(String[] aStrings,
LinkedHashMap aHeaderVariables);


// Public Instance Methods
public FWSimInterface createStatisticInterface(String aStatisticPrefix);

factory method creating an interface instance concerning the given data type
returns generic FWSimInterface
public abstract Object getInterface(FWSimVarMap aVarMap,
FWSimVariable.CONTENT_TYPE aContentType);


returns generic interface connection object. for example: database - connection; xml - fileinfo
public abstract FWSimResourceCache read(FWSimSession aFwSimSession, String
aProjectID, Object aCache, LinkedHashMap aKeyMap, FWSimInputAdapter
aResourceAdapter, String aUniqueID, FWSimInterface.INTERFACE_TYPE
aInterfaceType) throws MissingSimResourceException;

factory method creating an interface instance concerning the given data type
returns generic {@link FWSimResourceCache}
public String getName();


returns the name
public int getPoolSize();


returns the poolSize
public FWSimInterface.INTERFACE_TYPE getInterfaceType();


returns the inputType
public abstract void finalize() throws Exception; // Overrides
java.lang.Object


public Element toXML();


returns Element containing configuration for this Interface
public String toString(); // Overrides java.lang.Object


// Protected Instance Methods
protected void writeToDatabase(Object[] aValues, PreparedStatement
aTargetStatement, boolean aAddIterationData) throws SQLException;



// Inner Classes
public static final class FWSimInterface.INTERFACE_TYPE extends
java.lang.Enum
}



Extended by: DatabaseInterface, FILEInterface, JSONInterface, MEMORYInterface



Passed to: net.simplace.sim.io.postprocess.FWSimPostProcessManager.addPostProcessor(), net.simplace.sim.io.FWSimIOAdapter.createFormFields(), net.simplace.sim.io.postprocess.FileAppenderPostProcessor(), net.simplace.sim.io.resources.FWSimInputAdapter(), net.simplace.sim.io.resources.FWSimInputAdapter(), net.simplace.sim.io.FWSimIOAdapter(), net.simplace.sim.io.FWSimIOAdapter(), net.simplace.sim.io.output.FWSimOutputAdapter(), net.simplace.sim.io.output.FWSimOutputAdapter(), net.simplace.sim.io.postprocess.FWSimPostProcessor(), net.simplace.sim.io.resources.FWSimResourceAdapter(), net.simplace.sim.io.resources.FWSimResourceAdapter(), net.simplace.sim.FWSimSolution.setInterface(), net.simplace.sim.io.FWSimIOAdapter.setInterface(), net.simplace.sim.io.postprocess.SQLPostProcessor(), net.simplace.sim.io.output.FWSimOutput.updateAdapter(), net.simplace.sim.io.output.FWSimOutputAdapter.updateAdapter(), net.simplace.sim.io.resources.FWSimResourceAdapter.updateAdapter(), net.simplace.sim.io.output.FWSimOutputManager.updateInterface(), net.simplace.sim.io.resources.FWSimResourceManager.updateInterface()



Returned by: createInterface(), createInterface(), createStatisticInterface(), net.simplace.sim.io.FWSimIOAdapter.getInterface(), net.simplace.sim.io.output.FWSimOutputAdapter.getInterface(), net.simplace.sim.FWSimSolution.getInterface(), net.simplace.sim.io.output.FWSimOutputManager.getInterface()



Type of: net.simplace.sim.io.FWSimIOAdapter.iInterface, net.simplace.sim.io.postprocess.FWSimPostProcessor.iInterface