MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
|
CMixedCriticalityInstancesSerializer provides a methods to serialize and deserialize mixed-criticality instances. More...
Static Public Member Functions | |
static void | saveCollection (string directoryPath, string collectionName, IList< CMixedCriticalityInstance > instances) |
Saves collection of the specified instances into the specified path. | |
static List < CMixedCriticalityInstance > | loadCollection (string directoryPath) |
Loads a collection of mixed-criticality instances from the specified directory path. | |
static void | saveSolution (string directoryPath, IList< CMixedCriticalityInstance > instances) |
Saves the solutions of the specified instances to the specified directory. | |
static CMixedCriticalityInstance | deserialize (string fileName) |
Deserializes, i.e., rebuilds a mixed-criticality instance from data in the specified file. |
CMixedCriticalityInstancesSerializer provides a methods to serialize and deserialize mixed-criticality instances.
static CMixedCriticalityInstance MCScheduling.MixedCriticality.CMixedCriticalityInstancesSerializer.deserialize | ( | string | fileName | ) | [static] |
Deserializes, i.e., rebuilds a mixed-criticality instance from data in the specified file.
fileName | The file name where an MC instance will be rebuilt from. |
static void MCScheduling.MixedCriticality.CMixedCriticalityInstancesSerializer.saveCollection | ( | string | directoryPath, |
string | collectionName, | ||
IList< CMixedCriticalityInstance > | instances | ||
) | [static] |
Saves collection of the specified instances into the specified path.
A directory with the specified name of the collection will be created and filled with serialized mixed-criticality instances.
directoryPath | The directory path where the collection is going to be saved. |
collectionName | The name of the collection. |
instances | The instances to save. |
static void MCScheduling.MixedCriticality.CMixedCriticalityInstancesSerializer.saveSolution | ( | string | directoryPath, |
IList< CMixedCriticalityInstance > | instances | ||
) | [static] |
Saves the solutions of the specified instances to the specified directory.
directoryPath | The path of the directory where the solutions will be saved. |
instances | The instances whose solutions will be saved. |