1 |
3811845f
|
Alex Konig
|
using System;
|
2 |
|
|
|
3 |
|
|
namespace Parser.InputData
|
4 |
|
|
{
|
5 |
|
|
|
6 |
|
|
/// <summary>
|
7 |
|
|
///
|
8 |
|
|
///
|
9 |
|
|
/// Data contains:
|
10 |
|
|
/// datum - date of access
|
11 |
|
|
/// budova - building tag
|
12 |
|
|
/// hodina_zacatek - start of lecture
|
13 |
|
|
/// hodina_konec - end of lecture
|
14 |
|
|
/// pocet_prihlaseni - number of successfull sign-ins to given computer in given lecture
|
15 |
|
|
/// stroj_hostname - name of specific computer
|
16 |
|
|
/// typ_objektu - type of object (classroom, laboratory, lecture room, other)
|
17 |
|
|
/// ucebna_nazev - specific name of room
|
18 |
|
|
/// vyucovaci_hodina - number of lecture(according to the timetable)
|
19 |
|
|
/// Csv format:
|
20 |
|
|
/// "27.10.2011 00:00:00";1;7;"13:00";"13:45";"UI";"Laboratoř";"UI-505";"ui505av07-lps"
|
21 |
|
|
/// [datum];[amount];[lesson];[lesson start];[lesson end];[building];[room type];[room];[hostname]
|
22 |
|
|
/// </summary>
|
23 |
|
|
class LogInInstance
|
24 |
|
|
{
|
25 |
|
|
// index 0
|
26 |
|
|
public DateTime date;
|
27 |
|
|
// index 1
|
28 |
|
|
public int amount;
|
29 |
|
|
// index 2
|
30 |
|
|
public int lesson;
|
31 |
|
|
// index 3
|
32 |
|
|
public DateTime lessonStart;
|
33 |
|
|
// index 4
|
34 |
|
|
public DateTime lessonEnd;
|
35 |
|
|
// index 5
|
36 |
|
|
public string building;
|
37 |
|
|
// index 6
|
38 |
|
|
public string roomType;
|
39 |
|
|
// index 7
|
40 |
|
|
public string room;
|
41 |
|
|
// index 8
|
42 |
|
|
public string hostname;
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
public LogInInstance(DateTime date, int amount, int lesson, DateTime lessonStart, DateTime lessonEnd, string building, string roomtType, string room, string hostname)
|
46 |
|
|
{
|
47 |
|
|
this.date = date;
|
48 |
|
|
this.amount = amount;
|
49 |
|
|
this.lesson = lesson;
|
50 |
|
|
this.lessonStart = lessonStart;
|
51 |
|
|
this.lessonEnd = lessonEnd;
|
52 |
|
|
this.building = building;
|
53 |
|
|
this.roomType = roomtType;
|
54 |
|
|
this.room = room;
|
55 |
|
|
this.hostname = hostname;
|
56 |
|
|
}
|
57 |
|
|
|
58 |
|
|
public override string ToString()
|
59 |
|
|
{
|
60 |
|
|
return date + " " + room + " " + lessonStart + "-" + lessonEnd + " " + amount;
|
61 |
|
|
}
|
62 |
|
|
}
|
63 |
|
|
}
|