summaryrefslogtreecommitdiff
path: root/sources/core/VSProcess.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-17 20:36:00 +0000
committerPaul Buetow <paul@buetow.org>2008-05-17 20:36:00 +0000
commitdbb780b7295c0df60269ee6f3c85c3056d6262b8 (patch)
treed8f084283d6b5b86482e7edb3d7fc786de737ceb /sources/core/VSProcess.java
parenta622ebff377f37d14535f91e484335e2ad215acb (diff)
VSEvent interface has now has the init method.
Diffstat (limited to 'sources/core/VSProcess.java')
-rw-r--r--sources/core/VSProcess.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/core/VSProcess.java b/sources/core/VSProcess.java
index 5c3435e..e3d260e 100644
--- a/sources/core/VSProcess.java
+++ b/sources/core/VSProcess.java
@@ -5,6 +5,7 @@ import java.util.*;
import core.time.*;
import events.*;
+import events.implementations.*;
import prefs.*;
import protocols.*;
import simulator.*;
@@ -225,9 +226,10 @@ public final class VSProcess extends VSPrefs {
taskManager.removeTask(randomCrashTask);
if (crashTime >= 0 && crashTime >= getGlobalTime()) {
- randomCrashTask = new VSTask(crashTime, this, new ProcessCrashEvent());
+ VSProcessEvent event = new ProcessCrashEvent();
+ event.init(this);
+ randomCrashTask = new VSTask(crashTime, this, event);
taskManager.addTask(randomCrashTask);
- //System.out.println("DEBUG " + processID + " crashes at " + crashTime);
} else {
randomCrashTask = null;