MCScheduling 1.0
Set of Algorithms for Solving Mixed-Criticality Scheduling
Static Public Member Functions
MCScheduling.MixedCriticality.CMixedCriticalityInstancesSerializer Class Reference

CMixedCriticalityInstancesSerializer provides a methods to serialize and deserialize mixed-criticality instances. More...

List of all members.

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.

Detailed Description

CMixedCriticalityInstancesSerializer provides a methods to serialize and deserialize mixed-criticality instances.


Member Function Documentation

static CMixedCriticalityInstance MCScheduling.MixedCriticality.CMixedCriticalityInstancesSerializer.deserialize ( string  fileName) [static]

Deserializes, i.e., rebuilds a mixed-criticality instance from data in the specified file.

Parameters:
fileNameThe file name where an MC instance will be rebuilt from.
Returns:
The deserialized MC instance.
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.

Parameters:
directoryPathThe directory path where the collection is going to be saved.
collectionNameThe name of the collection.
instancesThe 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.

Parameters:
directoryPathThe path of the directory where the solutions will be saved.
instancesThe instances whose solutions will be saved.
 All Classes Namespaces Functions Variables Properties