Class ResourceUtil
java.lang.Object
org.palladiosimulator.simulizar.utils.ResourceUtil
Util class to create resources.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Resource
createResourceOf
(String fileExt, ResourceFactoryImpl resourceFactory, String storingLocation) Creates a resource of a model based on the specified path, file extension and resource factory.static Resource
createRuntimeMeasurementModelResource
(String storingLocation) Creates a runtime measurement model based on the specified path.
-
Constructor Details
-
ResourceUtil
public ResourceUtil()
-
-
Method Details
-
createRuntimeMeasurementModelResource
Creates a runtime measurement model based on the specified path.- Parameters:
storingLocation
-- Returns:
- See Also:
-
createResourceOf
public static Resource createResourceOf(String fileExt, ResourceFactoryImpl resourceFactory, String storingLocation) Creates a resource of a model based on the specified path, file extension and resource factory.- Parameters:
fileExt
- file extension of the created resourceresourceFactory
- factory required to create the resourcestoringLocation
- specifies the storing location of the runtime measurement model.- Returns:
- the created resource of the runtime measurement model.
-