Package net.simplace.sim.io.sync
Class 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- Author:
- Andreas Enders
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddSync
(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) void
reset()
void
sync
(Map<String, FWSimVarMap> aVarMapsContainer)
-
Constructor Details
-
FWSimSyncManager
public FWSimSyncManager()
-
-
Method Details
-
addSync
public String addSync(FWSimSession aSession, org.jdom2.Element aSyncElement) throws MissingSimResourceException, DuplicateSimFieldException adds a Resource with given configuration in XML (jdom)- Parameters:
aSession
-aSyncElement
-- Returns:
- Name of the Resource
- Throws:
MissingSimResourceException
DuplicateSimFieldException
-
createVariables
calls all createVariable methods on all resourceCreators and- Returns:
- the field map of all these
-
sync
- Parameters:
aVarMapsContainer
-- Throws:
Exception
- See Also:
-
getSyncAdapter
- Parameters:
aSourceName
-- Returns:
- the selected
FWSimResourceCache
- Throws:
MissingSimResourceException
-
getSyncAdapters
- Returns:
- all the resource creators
-
reset
- Throws:
Exception
- See Also:
-