public static GridParameter getParameter(int d, int c, int p) {
Discipline discipline = getDiscipline(d);
if (discipline == null) {
String unknown = "UnknownParameter_D"+ Integer.toString(d) +"_C"+
Integer.toString(c) +"_"+ Integer.toString(p);
return new GridParameter(p, unknown, unknown, "Unknown");
}
Category category = discipline.getCategory(c);
if (category == null) {
String unknown = "UnknownParameter_D"+ Integer.toString(d) +"_C"+
Integer.toString(c) +"_"+ Integer.toString(p);
return new GridParameter(p, unknown, unknown, "Unknown");
}
GridParameter parameter = category.getParameter(p);
if (parameter == null) {
String unknown = "UnknownParameter_D"+ Integer.toString(d) +"_C"+
Integer.toString(c) +"_"+ Integer.toString(p);
return new GridParameter(p, unknown, unknown, "Unknown");
}
return parameter;
}