net.simplace.simulation.io.resources.FWSimResourceManager
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
public class FWSimResourceManager {
// Public Constructors
public FWSimResourceManager();
// Class Methods public static Map
referenceKeys(LinkedHashMap aHeaderVariables,
FWSimSolution aSolution);
- aHeaderVariables
- aSolution
returns Map of referenced keys
// Public Instance Methods public
FWSimInputAdapter getResourceCreator(String aName);
Resources and Transormers can be got by this getter method passing the
returns {@link FWSimResourceAdapter} or {@link FWSimResourceTransformer}
public void
addResourceCreator(
FWSimInputAdapter aAdapter);
Resources and Transormers can be added by this method passing the
- aAdapter
to add to the Collection of creaters the method
public HashMap createVariables();
calls all createVariable methods on all resourceCreators and
returns the field map of all these
public Collection getResourceAdapters();
returns all the resource creators
public void reset() throws Exception;
}
Returned by: net.simplace.simulation.FWSimSession.getResourceManager()