net.simplace.sim.io.resources.FWSimResourceAdapter

Resource Adapters are transferring data from interfaces net.simplace.sim.io.interfaces.FWSimInterface to FWSimResourceCache Adapters are media specific. They get their specific media type from the net.simplace.sim.io.interfaces.FWSimInterface


public abstract class FWSimResourceAdapter extends FWSimInputAdapter {
// Public Constructors
public FWSimResourceAdapter(Element aResourceElement, String aName, int
aOrderNumber, FWSimInterface aInterface, FWSimIOAdapter.FREQUENCE
aFrequence, FWSimSession aFwSimSession);
public FWSimResourceAdapter(FWSimResourceAdapter aAdapter, FWSimInterface
aInterface);
// Protected Constructors
protected FWSimResourceAdapter(Element aResourceElement, FWSimSession
aCurrentSession, int aOrderNumber);

// Protected Instance Variables
protected Integer[] iLinesToRead;

// Class Methods
public static FWSimResourceAdapter createResourceAdapter(FWSimSession
aSession, Element aResourceElement, int aOrderNumber)
throws MissingSimResourceException, DuplicateSimFieldException;

factory method for ResourceAdpater creation.
returns The created ResourceAdapter
public static FWSimResourceAdapter updateAdapter(FWSimResourceAdapter
aOldAdapter, FWSimInterface aInterface);

factory method for ResourceAdpater creation.
returns The created ResourceAdapter
public static FWSimFieldContainer createAdapterFromObservable(FWObservable
aObservable, FWSimSession aFwSimSession, int aOrderNumber)
throws MissingSimResourceException;


returns the FieldContainer

// Public Instance Methods
public Integer[] getLinesToRead();


returns the linesToRead
public void setLinesToRead(Integer[] aLinesToRead);

public Element toXML();



}



Hierarchy: java.lang.Object - net.simplace.sim.io.FWSimIOAdapter (net.simplace.sim.util.FWSimFieldContainer) - FWSimInputAdapter - FWSimResourceAdapter



Extended by: net.simplace.sim.io.resources.adapter.CSVResourceAdapter, net.simplace.sim.io.resources.adapter.DatabaseResourceAdapter, net.simplace.sim.io.resources.adapter.NetCDFResourceAdapter, net.simplace.sim.io.resources.adapter.XMLResourceAdapter



Passed to: net.simplace.sim.io.resources.adapter.CSVResourceAdapter(), net.simplace.sim.io.resources.adapter.DatabaseResourceAdapter(), net.simplace.sim.io.resources.adapter.DBFResourceAdapter(), FWSimResourceCache.fromCSV(), FWSimResourceCache.fromXML(), FWSimResourceAdapter(), net.simplace.sim.io.resources.adapter.NetCDFResourceAdapter(), updateAdapter(), net.simplace.sim.io.resources.adapter.XMLResourceAdapter()



Returned by: createResourceAdapter(), updateAdapter()