class ReaderTGFF {

	protected Application<Task, Dependency> toApplication(List<String> in) {

		Application<Task, Dependency> application = new Application<Task, Dependency>();

		Iterator<String> it = in.iterator();
		String currentLine;

		while (it.hasNext()) {
			currentLine = it.next();

			// import hyperperiod
			if (currentLine.contains(HYPERPERIOD)) {
				this.hyperperiod = importHyperperiod(currentLine);
			}

			// import message sizes
			else if (currentLine.contains(COMMUN_QUANT)) {
				this.messageSizes = importMessageSizes(it);
			}

			// import application graphs
			else if (currentLine.contains(TASK_GRAPH)) {
				importTaskGraph(currentLine, it, application);
			}
		}
		return application;
	}

}