diff options
| author | Paul Buetow <paul@buetow.org> | 2008-08-07 22:09:42 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-08-07 22:09:42 +0000 |
| commit | 35e3bca5989558441813f49f359cc5d9a83e96c3 (patch) | |
| tree | ca9d677db0a4558b093348e0cec702a1492315d4 /sources/core/VSInternalProcess.java | |
| parent | 2a74626954f00f3403b10c2a5160c0c4d1814aad (diff) | |
codelinelength and formatted
Diffstat (limited to 'sources/core/VSInternalProcess.java')
| -rw-r--r-- | sources/core/VSInternalProcess.java | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sources/core/VSInternalProcess.java b/sources/core/VSInternalProcess.java index df70cc8..9311d0a 100644 --- a/sources/core/VSInternalProcess.java +++ b/sources/core/VSInternalProcess.java @@ -37,8 +37,8 @@ import simulator.*; import utils.*; /** - * The class VSInternalProcess, an object of this class represents a process of a - * simulator. + * The class VSInternalProcess, an object of this class represents a process + * of a simulator. * * @author Paul C. Buetow */ @@ -52,7 +52,8 @@ public class VSInternalProcess extends VSAbstractProcess { * @param logging the logging object */ public VSInternalProcess(VSPrefs prefs, int processNum, - VSSimulatorCanvas simulatorCanvas, VSLogging logging) { + VSSimulatorCanvas simulatorCanvas, + VSLogging logging) { super(prefs, processNum, simulatorCanvas, logging); } @@ -143,9 +144,10 @@ public class VSInternalProcess extends VSAbstractProcess { /** * Creates the random crash task. The crash task will be created only if - * the process is not crashed atm. and if VSInternalProcess.getARandomCrashTime() - * returns a non-negative value. The random crash task uses the simulaion's - * global time for its scheduling. + * the process is not crashed atm. and if + * VSInternalProcess.getARandomCrashTime() * returns a non-negative value. + * The random crash task uses the simulaion's global time for its + * scheduling. */ public synchronized void createRandomCrashTask() { if (!isCrashed) { @@ -291,7 +293,7 @@ public class VSInternalProcess extends VSAbstractProcess { * will not get lost at all. */ public synchronized long getARandomMessageOutageTime(long durationTime, - VSInternalProcess receiverProcess) { + VSInternalProcess receiverProcess) { int percentage = (int) ((getInteger("message.prob.outage") + receiverProcess.getInteger( "message.prob.outage")) / 2); @@ -404,7 +406,7 @@ public class VSInternalProcess extends VSAbstractProcess { * @return the protocol object */ public synchronized VSAbstractProtocol getProtocolObject( - String protocolClassname) { + String protocolClassname) { VSAbstractProtocol protocol = null; if (!objectExists(protocolClassname)) { |
