java.lang.Object
org.palladiosimulator.generator.fluent.shared.util.ModelSaver

public final 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

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.allocation
      path - 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.system
      path - 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