Class ModelSaver
java.lang.Object
org.palladiosimulator.generator.fluent.shared.util.ModelSaver
This utility class contains functions to save Repositories,
ResourceTypeReopsitories, Systems, ResourceEnvironemnts and Allocations.
- See Also:
-
Repository
System
ResourceEnvironment
Allocation
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
saveAllocation
(org.palladiosimulator.pcm.allocation.Allocation allocation, String path, String name) Saves an Allocation to the specified location.static void
saveRepository
(org.palladiosimulator.pcm.repository.Repository repository, String path, String name) Saves a Repository to the specified location.static void
saveResourceEnvironment
(org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment resourceEnvironment, String path, String name) Saves a ResourceEnvironment to the specified location.static void
saveSystem
(org.palladiosimulator.pcm.system.System system, String path, String name) Saves a System to the specified location.static void
saveUsageModel
(org.palladiosimulator.pcm.usagemodel.UsageModel usgModel, String path, String name) Saves a UsageModel to the specified location.
-
Method Details
-
saveAllocation
public static void saveAllocation(org.palladiosimulator.pcm.allocation.Allocation allocation, String path, String name) Saves an Allocation to the specified location.- Parameters:
org
- .palladiosimulator.generator.fluent.allocationpath
- the path to the target file including the name without the file extension- See Also:
-
Allocation
-
saveRepository
public static void saveRepository(org.palladiosimulator.pcm.repository.Repository repository, String path, String name) Saves a Repository to the specified location.- Parameters:
repository
-path
- the path to the target file including the name without the file extension- See Also:
-
Repository
-
saveResourceEnvironment
public static void saveResourceEnvironment(org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment resourceEnvironment, String path, String name) Saves a ResourceEnvironment to the specified location.- Parameters:
resourceEnvironment
-path
- the path to the target file including the name without the file extension- See Also:
-
ResourceEnvironment
-
saveSystem
public static void saveSystem(org.palladiosimulator.pcm.system.System system, String path, String name) Saves a System to the specified location.- Parameters:
org
- .palladiosimulator.generator.fluent.systempath
- the path to the target file including the name without the file extension- See Also:
-
System
-
saveUsageModel
public static void saveUsageModel(org.palladiosimulator.pcm.usagemodel.UsageModel usgModel, String path, String name) Saves a UsageModel to the specified location.- Parameters:
usageModel
-path
- the path to the target file including the name without the file extension- See Also:
-
UsageModel
-