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);


returns Map of referenced keys

// Public Instance Methods
public String addResource(FWSimSession aSession, Element aResource)
throws MissingSimResourceException, DuplicateSimFieldException;

adds a Resource with given configuration in XML (jdom)
returns Name of the Resource
public String addTransform(FWSimSession aSession, Element aTransform)
throws MissingSimResourceException;


returns Name of the Transform
public boolean updateResources(FWSimVarMap aVarMap)
throws MissingSimResourceException;

resources are updated only for new projects
returns boolean success
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
public boolean updateInterface(FWSimInterface aInterface, FWSimVarMap
aVarMap);


returns if update found an adaptor to update
public HashMap createVariables();

calls all createVariable methods on all resourceCreators and
returns the field map of all these
public FWSimResourceCache getResourceCache(String aSourceName);


returns the selected {@link FWSimResourceCache}
public void updateVarMap(FWSimVarMap aVarMap, boolean aForceUpdate);

updates the net.simplace.simulation.util.FWSimVarMap in all stored net.simplace.simulation.io.resources.FWSimResourceCache
public Collection getResourceAdapters();


returns all the resource creators
public void reset() throws Exception;



}



Returned by: net.simplace.simulation.FWSimSession.getResourceManager()