private List <RecordInfoDescriptor> LoadRecordInfoDescriptors(string xmlFilesDirectoryPath) { List <RecordInfoDescriptor> recordDescriptors = new List <RecordInfoDescriptor>(); XmlSerializer xmlSerializer = new XmlSerializer(typeof(RecordInfoDescriptor)); foreach (string file in Directory.GetFiles(xmlFilesDirectoryPath)) { TextReader textReader = new StreamReader(file); RecordInfoDescriptor recordInfo = (RecordInfoDescriptor)xmlSerializer.Deserialize(textReader); recordDescriptors.Add(recordInfo); } return(recordDescriptors); }
public RecordNeighbor(RecordInfoDescriptor infoDescriptor, string classification) { this.Classification = classification; Intervals = infoDescriptor.IntervalsList; Recognitions = infoDescriptor.RecognitionsTimesList; MinInterval = infoDescriptor.MinInterval; MaxInterval = infoDescriptor.MaxInterval; AvgInterval = infoDescriptor.AvgInterval; Duration = infoDescriptor.Duration; LastSectionRecognitionsCount = infoDescriptor.LastSectionRecognitionsCount; LastSectionMinInterval = infoDescriptor.LastSectionMinInterval; LastSectionMaxInterval = infoDescriptor.LastSectionMaxInterval; LastSectionAvgInterval = infoDescriptor.LastSectionAvgInterval; LastSectionTimeSpan = infoDescriptor.LastSectionTimeSpan; }
public RecordNeighbor(RecordInfoDescriptor infoDescriptor) : this(infoDescriptor, "") { }
public RecordNeighbor GenerateNeighborFromRecordInfoDescriptor( RecordInfoDescriptor recordInfoDescriptor, string classification = "none") { return(new RecordNeighbor(recordInfoDescriptor, classification)); }