Start
|
Index
|
Overview
•
PREV
|
UP
|
NEXT
net.simplace.simulation.io.resources.FWSimResourceAdapter
Resource Adapters are transferring data from interfaces
net.simplace.simulation.io.interfaces.FWSimInterface
to
FWSimResourceCache
Adapters are media specific. They get their specific media type from the
net.simplace.simulation.io.interfaces.FWSimInterface
public abstract class
FWSimResourceAdapter
extends
FWSimInputAdapter
{
// Public Constructors
public
FWSimResourceAdapter
(Element aResourceElement, String aName, int
aOrderNumber,
FWSimInterface
aInterface,
FWSimIOAdapter.FREQUENCE
aFrequence);
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.
aSession
aResourceElement
aOrderNumber
returns
The created ResourceAdapter
public static
FWSimResourceAdapter
updateAdapter
(
FWSimResourceAdapter
aOldAdapter,
FWSimInterface
aInterface);
factory method for ResourceAdpater creation.
aOldAdapter
aInterface
returns
The created ResourceAdapter
public static
FWSimFieldContainer
createAdapterFromObservable
(
FWObservable
aObservable,
FWSimSession
aFwSimSession, int aOrderNumber)
throws
MissingSimResourceException
;
aObservable
aFwSimSession
aOrderNumber
returns
the FieldContainer
// Public Instance Methods
public Integer[]
getLinesToRead
();
returns
the linesToRead
public void
setLinesToRead
(Integer[] aLinesToRead);
aLinesToRead
the filesToRead to set
public Element
toXML
();
}
Hierarchy:
java.lang.Object -
net.simplace.simulation.io.FWSimIOAdapter
(
net.simplace.simulation.util.FWSimFieldContainer
) -
FWSimInputAdapter
- FWSimResourceAdapter
Extended by:
net.simplace.simulation.io.resources.adapter.CSVResourceAdapter
,
net.simplace.simulation.io.resources.adapter.DatabaseResourceAdapter
,
net.simplace.simulation.io.resources.adapter.XMLResourceAdapter
Passed to:
net.simplace.simulation.io.resources.adapter.CSVResourceAdapter
(),
net.simplace.simulation.io.resources.adapter.DatabaseResourceAdapter
(),
FWSimResourceCache.fromCSV
(),
FWSimResourceCache.fromXML
(),
FWSimResourceAdapter
(),
updateAdapter
(),
net.simplace.simulation.io.resources.adapter.XMLResourceAdapter
()
Returned by:
createResourceAdapter
(),
updateAdapter
()