net.simplace.simulation.io.FWSimIOAdapter

Implements the net.simplace.simulation.util.FWSimFieldContainer to be able to access resources and output adaptors extending this class. create form fields makes it possible to use the form fields to fill the content of this adapter.


public abstract class FWSimIOAdapter implements
net.simplace.simulation.util.FWSimFieldContainer {
// Public Constructors
public FWSimIOAdapter(Element aResourceElement, String aName, int
aOrderNumber, FWSimInterface aInterface, FWSimIOAdapter.FREQUENCE
aFrequence);
public FWSimIOAdapter(FWSimIOAdapter aAdapter, FWSimInterface aInterface);
// Protected Constructors
protected FWSimIOAdapter(Element aResourceElement, FWSimSession aSession,
int aOrderNumber);

// Constants
protected final Element iResourceElement;
protected final String iName;
protected final LinkedHashMap iHeaderVariables;
protected final FWSimIOAdapter.FREQUENCE iFrequence;
protected static final JexlEngine JEXL_ENGINE;
// Protected Instance Variables
protected JexlScript iJexlScript;
protected int iOrderNumber;
protected FWSimInterface iInterface;
protected int iFieldcount;
protected LinkedHashMap iKeyMap;
protected String iSourceKey;
protected boolean iArrayMode;

// Class Methods
public static Element createFormFields(FWSimVariable.CONTENT_TYPE
aContentType, FWSimInterface aInterface, FWSimIOAdapter aAdapter,
FWSimIOAdapter.FREQUENCE aFrequence, boolean aEnabled);


returns the created Element

// Public Instance Methods
public void addVariable(FWSimVariable aVariable);
// From net.simplace.simulation.util.FWSimFieldContainer


be careful if using this method while it adds a field to the header information
public FWSimVariable getVariable(String aID); // From
net.simplace.simulation.util.FWSimFieldContainer


gets FWSimVariable from the header information
public void removeVariable(String aID); // From
net.simplace.simulation.util.FWSimFieldContainer


be careful if using this method while it removes a field from the header information
public String getName(); // From
net.simplace.simulation.util.FWSimFieldContainer



returns the name
public FWSimIOAdapter.FREQUENCE getFrequence(); // From
net.simplace.simulation.util.FWSimFieldContainer



returns the frequency
public JexlScript getJexlScript();


returns the rule
public JexlScript getJexlScript(String aRule);


returns the new rule
public int getOrderNumber(); // From
net.simplace.simulation.util.FWSimFieldContainer



returns the orderNumber
public void setOrderNumber(int orderNumber);

public FWSimInterface getInterface();


returns FWSimInterface
public void setInterface(FWSimInterface aInterface);

public HashMap getKeyMap();


returns the key
public LinkedHashMap getHeaderVariables();


returns the headerVariables
public HashMap createVariables(); // From
net.simplace.simulation.util.FWSimFieldContainer


returns a new hash map containing the header information
public HashMap getFieldMap(); // From
net.simplace.simulation.util.FWSimFieldContainer


returns the header information
public String toString(); // Overrides java.lang.Object

implementation returning the name of the component only
public Element getHeaderXML();


returns XML Element of the Header information
public boolean isArrayMode();


returns if the Adapter is used in ArrayMode
public Element getCreateFormXML(); // From
net.simplace.simulation.util.FWSimFieldContainer


public Element getEditFormXML(boolean aEnabled); // From
net.simplace.simulation.util.FWSimFieldContainer


public void finalize() throws Exception; // Overrides java.lang.Object


// Protected Instance Methods
protected void writeHeaderList();

writes a new header list to the element


// Inner Classes
public static final class FWSimIOAdapter.FREQUENCE extends java.lang.Enum
}



Extended by: net.simplace.simulation.io.resources.FWSimInputAdapter, net.simplace.simulation.io.output.FWSimOutputAdapter



Passed to: createFormFields(), FWSimIOAdapter()