Turner, Serveradmin & Workaholic
Date of registration: Apr 25th 2006
Location: Südstadt
Occupation: (iter (B.Sc. Inf, 8)) \n (be-a-slave ("SRA", "Bachelor Thesis")) \n (be-a-programmer-slave ("Freelancer", "Programming"))
Quoted
a) Modifizieren Sie das Interface IEreignis so, dass es eine SimulatorException wirft.
b) Modifizieren Sie Ihre (bzw. die im Lösungsvorschlag gegebenen) Klassen Ankunft und Abgang so, dass die Methode ereignisAusfuehren jeweils eine
EreignisZuSpaet-Exception auslöst (Stichwort: throw), wenn die Ausführungszeit eines neu erzeugten Ereignisses größer als 100 ist. Geben dieser Exception eine Textmeldung mit, ob der Fehler durch eine Ankunft oder einen Abgang ausgelöst wurde
Quoted
Original von Warui
.oO(wieso nur habe ich das Gefühl, dass es länger gedauert hat, diesen Text zu schreiben, als die Aufgabe zu lösen? ^,^)
This post has been edited 1 times, last edit by "julianr" (Jun 29th 2006, 10:52am)
Senior Schreiberling
Date of registration: Feb 3rd 2003
Location: Ex-Europameisterland
Occupation: 4TheScience
This post has been edited 3 times, last edit by "Dot" (Jul 2nd 2006, 12:48pm)
Quoted
Original von Dot
Seh ich es richtig,dass SimulationException eine abstract class ist und EreignisZuSpaet eine davon abgeleitete Klasse ja?
Und bei SimulationException müssen wir extends Exception machen oder?
This post has been edited 1 times, last edit by "neweb" (Jul 2nd 2006, 12:51pm)
Senior Schreiberling
Date of registration: Feb 3rd 2003
Location: Ex-Europameisterland
Occupation: 4TheScience
Turner, Serveradmin & Workaholic
Date of registration: Apr 25th 2006
Location: Südstadt
Occupation: (iter (B.Sc. Inf, 8)) \n (be-a-slave ("SRA", "Bachelor Thesis")) \n (be-a-programmer-slave ("Freelancer", "Programming"))
This post has been edited 1 times, last edit by "Horseboy" (Jul 2nd 2006, 8:38pm)
Quoted
SimulatorApplikation.java:17: Simulator() is not public in implementation.Simulator; cannot be accessed from outside package
Simulator meineSimulation = new Simulator();
^
1 error
This post has been edited 1 times, last edit by "neweb" (Jul 2nd 2006, 9:41pm)
Turner, Serveradmin & Workaholic
Date of registration: Apr 25th 2006
Location: Südstadt
Occupation: (iter (B.Sc. Inf, 8)) \n (be-a-slave ("SRA", "Bachelor Thesis")) \n (be-a-programmer-slave ("Freelancer", "Programming"))