Package net.simplace.sim.io.sync
Klasse FWSimSyncManager
java.lang.Object
net.simplace.sim.io.sync.FWSimSyncManager
With the resources part of the main configuration xml the resources are instantiated
Singleton implementation
Holds different resources for the model threads as
FWSimResourceCache
Ensures the efficient use of the resources
Presents data via Objects
Able to abstract data access format as
Database via SQL
Excel (csv)
XML
Uses File Access Pool and Connection Pool via IO Interfaces- Autor:
- Andreas Enders
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungaddSync(FWSimSession aSession, org.jdom2.Element aSyncElement) adds a Resource with given configuration in XML (jdom)calls all createVariable methods on all resourceCreators andgetSyncAdapter(String aSourceName) voidreset()voidsync(Map<String, FWSimVarMap> aVarMapsContainer)
-
Konstruktordetails
-
FWSimSyncManager
public FWSimSyncManager()
-
-
Methodendetails
-
addSync
public String addSync(FWSimSession aSession, org.jdom2.Element aSyncElement) throws MissingSimResourceException, DuplicateSimFieldException adds a Resource with given configuration in XML (jdom)- Parameter:
aSession-aSyncElement-- Gibt zurück:
- Name of the Resource
- Löst aus:
MissingSimResourceExceptionDuplicateSimFieldException
-
createVariables
calls all createVariable methods on all resourceCreators and- Gibt zurück:
- the field map of all these
-
sync
- Parameter:
aVarMapsContainer-- Löst aus:
Exception- Siehe auch:
-
getSyncAdapter
- Parameter:
aSourceName-- Gibt zurück:
- the selected
FWSimResourceCache - Löst aus:
MissingSimResourceException
-
getSyncAdapters
- Gibt zurück:
- all the resource creators
-
reset
- Löst aus:
Exception- Siehe auch:
-