class ReaderTGFF {

	protected void addDeadline(String line, String suffix, Application<Task, Dependency> application,
			String deadlineType) {

		String[] entries = line.trim().split(SEPARATOR);
		assert entries.length == 6 : "tgff-file \"" + deadlineType + "\": wrong number of entries";

		Task t = application.getVertex(entries[3] + suffix);
		assert t != null : "error in tgff file: task " + entries[3]
				+ " does not exist, so cannot be assigned a deadline.";

		t.setAttribute(deadlineType, Double.parseDouble(entries[5]));
	}

}