Class ModelSaver
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.shared.util.ModelSaver
-
public class ModelSaver extends Object
This utility class contains functions to save Repositories, ResourceTypeReopsitories, Systems, ResourceEnvironemnts and Allocations.- See Also:
Repository,System,ResourceEnvironment,Allocation
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsaveAllocation(org.palladiosimulator.pcm.allocation.Allocation allocation, String path, boolean printToConsole)Saves an Allocation to the specified location.static voidsaveRepository(org.palladiosimulator.pcm.repository.Repository repository, String path, boolean printToConsole)Saves a Repository to the specified location.static voidsaveResourceEnvironment(org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment resourceEnvironment, String path, boolean printToConsole)Saves a ResourceEnvironment to the specified location.static voidsaveSystem(org.palladiosimulator.pcm.system.System system, String path, boolean printToConsole)Saves a System to the specified location.static voidsaveUsageModel(org.palladiosimulator.pcm.usagemodel.UsageModel usgModel, String path, boolean printToConsole)Saves a UsageModel to the specified location.
-
-
-
Method Detail
-
saveRepository
public static void saveRepository(org.palladiosimulator.pcm.repository.Repository repository, String path, boolean printToConsole)Saves a Repository to the specified location.- Parameters:
repository-path- the path to the target file including the name without the file extensionprintToConsole- prints the xml representation of the model to the console if set to true- See Also:
Repository
-
saveSystem
public static void saveSystem(org.palladiosimulator.pcm.system.System system, String path, boolean printToConsole)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 extensionprintToConsole- prints the xml representation of the model to the console if set to true- See Also:
System
-
saveResourceEnvironment
public static void saveResourceEnvironment(org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment resourceEnvironment, String path, boolean printToConsole)Saves a ResourceEnvironment to the specified location.- Parameters:
resourceEnvironment-path- the path to the target file including the name without the file extensionprintToConsole- prints the xml representation of the model to the console if set to true- See Also:
ResourceEnvironment
-
saveAllocation
public static void saveAllocation(org.palladiosimulator.pcm.allocation.Allocation allocation, String path, boolean printToConsole)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 extensionprintToConsole- prints the xml representation of the model to the console if set to true- See Also:
Allocation
-
saveUsageModel
public static void saveUsageModel(org.palladiosimulator.pcm.usagemodel.UsageModel usgModel, String path, boolean printToConsole)Saves a UsageModel to the specified location.- Parameters:
usageModel-path- the path to the target file including the name without the file extensionprintToConsole- prints the xml representation of the model to the console if set to true- See Also:
UsageModel
-
-