summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2022-04-03 20:04:57 +0100
committerPaul Buetow <paul@buetow.org>2022-04-03 20:53:17 +0100
commite1ab7f751de9ccfd703931016371a95e8208ffb4 (patch)
tree25a6f2797d786c6169d3d012c3018c0aa411ae91
parentdc9500c513173a0f527e5edc7a8e9c26f1acd99a (diff)
reformatted with astyleds-sim
-rw-r--r--sources/core/VSAbstractProcess.java10
-rw-r--r--sources/core/VSInternalProcess.java2
-rw-r--r--sources/core/VSMessage.java2
-rw-r--r--sources/core/VSTask.java2
-rw-r--r--sources/core/VSTaskManager.java8
-rw-r--r--sources/events/VSAbstractEvent.java2
-rw-r--r--sources/events/VSRegisteredEvents.java4
-rw-r--r--sources/events/implementations/VSProcessCrashEvent.java6
-rw-r--r--sources/events/implementations/VSProcessRecoverEvent.java6
-rw-r--r--sources/events/internal/VSAbstractInternalEvent.java2
-rw-r--r--sources/events/internal/VSMessageReceiveEvent.java4
-rw-r--r--sources/events/internal/VSProtocolEvent.java10
-rw-r--r--sources/events/internal/VSProtocolScheduleEvent.java2
-rw-r--r--sources/prefs/VSDefaultPrefs.java262
-rw-r--r--sources/prefs/VSDefaultPrefsDE.java249
-rw-r--r--sources/prefs/VSPrefs.java46
-rw-r--r--sources/prefs/editors/VSAbstractEditor.java28
-rw-r--r--sources/prefs/editors/VSColorChooser.java2
-rw-r--r--sources/prefs/editors/VSEditorFrame.java8
-rw-r--r--sources/prefs/editors/VSEditorTable.java4
-rw-r--r--sources/prefs/editors/VSProcessEditor.java16
-rw-r--r--sources/prefs/editors/VSSimulatorEditor.java16
-rw-r--r--sources/protocols/VSAbstractProtocol.java8
-rw-r--r--sources/protocols/implementations/VSOnePhaseCommitProtocol.java2
-rw-r--r--sources/serialize/VSSerialize.java26
-rw-r--r--sources/simulator/VSSimulator.java82
-rw-r--r--sources/simulator/VSSimulatorFrame.java74
-rw-r--r--sources/simulator/VSSimulatorVisualization.java49
-rw-r--r--sources/utils/VSAboutFrame.java10
29 files changed, 334 insertions, 608 deletions
diff --git a/sources/core/VSAbstractProcess.java b/sources/core/VSAbstractProcess.java
index 83ff99d..78e7844 100644
--- a/sources/core/VSAbstractProcess.java
+++ b/sources/core/VSAbstractProcess.java
@@ -225,7 +225,7 @@ public abstract class VSAbstractProcess extends VSSerializablePrefs {
/* Make additional process settings editable through GUI */
initLong("process.localtime", localTime,
- prefs.getString("lang.en.process.time.local"), "ms");
+ prefs.getString("lang.process.time.local"), "ms");
createRandomCrashTask_();
}
@@ -585,19 +585,19 @@ public abstract class VSAbstractProcess extends VSSerializablePrefs {
*/
public synchronized String toString() {
StringBuffer buffer = new StringBuffer();
- buffer.append(prefs.getString("lang.en.process.id"));
+ buffer.append(prefs.getString("lang.process.id"));
buffer.append(": ");
buffer.append(getProcessID());
buffer.append("; ");
- buffer.append(prefs.getString("lang.en.process.time.local"));
+ buffer.append(prefs.getString("lang.process.time.local"));
buffer.append(": ");
buffer.append(VSTools.getTimeString(getTime()));
buffer.append("; ");
- buffer.append(prefs.getString("lang.en.time.lamport"));
+ buffer.append(prefs.getString("lang.time.lamport"));
buffer.append(": ");
buffer.append(lamportTime);
buffer.append("; ");
- buffer.append(prefs.getString("lang.en.time.vector"));
+ buffer.append(prefs.getString("lang.time.vector"));
buffer.append(": ");
buffer.append(vectorTime);
return buffer.toString();
diff --git a/sources/core/VSInternalProcess.java b/sources/core/VSInternalProcess.java
index c2166b9..81cc3fd 100644
--- a/sources/core/VSInternalProcess.java
+++ b/sources/core/VSInternalProcess.java
@@ -313,7 +313,7 @@ public class VSInternalProcess extends VSAbstractProcess {
*/
public synchronized void sendMessage(VSMessage message) {
StringBuffer buffer = new StringBuffer();
- buffer.append(prefs.getString("lang.en.message.sent"));
+ buffer.append(prefs.getString("lang.message.sent"));
buffer.append("; ");
buffer.append(message.toStringFull());
log(buffer.toString());
diff --git a/sources/core/VSMessage.java b/sources/core/VSMessage.java
index 28e1b84..a7b48e6 100644
--- a/sources/core/VSMessage.java
+++ b/sources/core/VSMessage.java
@@ -151,7 +151,7 @@ public class VSMessage extends VSPrefs {
buffer.append("ID: ");
buffer.append(messageID);
buffer.append("; ");
- buffer.append(prefs.getString("lang.en.protocol"));
+ buffer.append(prefs.getString("lang.protocol"));
buffer.append(": ");
buffer.append(VSRegisteredEvents.getShortnameByClassname(
getProtocolClassname()));
diff --git a/sources/core/VSTask.java b/sources/core/VSTask.java
index 3e06a7f..54d7ff1 100644
--- a/sources/core/VSTask.java
+++ b/sources/core/VSTask.java
@@ -340,7 +340,7 @@ public class VSTask implements Comparable<Object>, VSSerializable {
public String toString() {
StringBuffer buffer = new StringBuffer();
- buffer.append(prefs.getString("lang.en.task"));
+ buffer.append(prefs.getString("lang.task"));
buffer.append(" ");
buffer.append(getTaskTime());
buffer.append(event.toString());
diff --git a/sources/core/VSTaskManager.java b/sources/core/VSTaskManager.java
index f2ad734..6aa10d0 100644
--- a/sources/core/VSTaskManager.java
+++ b/sources/core/VSTaskManager.java
@@ -439,9 +439,9 @@ public class VSTaskManager implements VSSerializable {
public synchronized String toString() {
StringBuffer buffer = new StringBuffer();
- buffer.append(prefs.getString("lang.en.task.manager"));
+ buffer.append(prefs.getString("lang.task.manager"));
buffer.append(" (");
- buffer.append(prefs.getString("lang.en.tasks.fullfilled"));
+ buffer.append(prefs.getString("lang.tasks.fullfilled"));
buffer.append(": ");
for (VSTask task : fullfilledProgrammedTasks) {
@@ -449,7 +449,7 @@ public class VSTaskManager implements VSSerializable {
buffer.append("; ");
}
- buffer.append(prefs.getString("lang.en.tasks.global"));
+ buffer.append(prefs.getString("lang.tasks.global"));
buffer.append(": ");
for (VSTask task : globalTasks) {
@@ -457,7 +457,7 @@ public class VSTaskManager implements VSSerializable {
buffer.append("; ");
}
- buffer.append(prefs.getString("lang.en.tasks.local"));
+ buffer.append(prefs.getString("lang.tasks.local"));
buffer.append(": ");
ArrayList<VSInternalProcess> processes =
diff --git a/sources/events/VSAbstractEvent.java b/sources/events/VSAbstractEvent.java
index f61f76f..0f8c324 100644
--- a/sources/events/VSAbstractEvent.java
+++ b/sources/events/VSAbstractEvent.java
@@ -228,7 +228,7 @@ abstract public class VSAbstractEvent extends VSSerializablePrefs {
int id = ((Integer) objectInputStream.readObject()).intValue();
String savedEventShortname = (String) objectInputStream.readObject();
this.eventClassname = (String) objectInputStream.readObject();
- this.eventShortname = createShortname(savedEventShortname);
+ this.eventShortname = createShortname(savedEventShortname);
if (VSSerialize.DEBUG)
System.out.println(eventClassname);
diff --git a/sources/events/VSRegisteredEvents.java b/sources/events/VSRegisteredEvents.java
index 57c28c7..6d50ae5 100644
--- a/sources/events/VSRegisteredEvents.java
+++ b/sources/events/VSRegisteredEvents.java
@@ -320,9 +320,9 @@ public final class VSRegisteredEvents {
*/
private static void registerEvent(String eventClassname) {
String eventName =
- prefs.getString("lang.en." + eventClassname);
+ prefs.getString("lang." + eventClassname);
String eventShortname =
- prefs.getString("lang.en." + eventClassname + ".short");
+ prefs.getString("lang." + eventClassname + ".short");
registerEvent(eventClassname, eventName, eventShortname);
}
diff --git a/sources/events/implementations/VSProcessCrashEvent.java b/sources/events/implementations/VSProcessCrashEvent.java
index d9d4df1..a68e8a1 100644
--- a/sources/events/implementations/VSProcessCrashEvent.java
+++ b/sources/events/implementations/VSProcessCrashEvent.java
@@ -10,7 +10,7 @@ import simulator.VSMain;
* @author Paul C. Buetow
*/
public class VSProcessCrashEvent extends VSAbstractEvent
- implements VSCopyableEvent {
+ implements VSCopyableEvent {
/* (non-Javadoc)
* @see events.VSCopyableEvent#initCopy(events.VSAbstractEvent)
*/
@@ -28,7 +28,7 @@ public class VSProcessCrashEvent extends VSAbstractEvent
* @see events.VSAbstractEvent#createShortname()()
*/
protected String createShortname(String savedShortname) {
- return VSMain.prefs.getString("lang.en.process.crash");
+ return VSMain.prefs.getString("lang.process.crash");
}
/* (non-Javadoc)
@@ -37,7 +37,7 @@ public class VSProcessCrashEvent extends VSAbstractEvent
public void onStart() {
if (!process.isCrashed()) {
process.isCrashed(true);
- log(prefs.getString("lang.en.crashed"));
+ log(prefs.getString("lang.crashed"));
}
}
}
diff --git a/sources/events/implementations/VSProcessRecoverEvent.java b/sources/events/implementations/VSProcessRecoverEvent.java
index fc47bbd..2aa5758 100644
--- a/sources/events/implementations/VSProcessRecoverEvent.java
+++ b/sources/events/implementations/VSProcessRecoverEvent.java
@@ -11,7 +11,7 @@ import simulator.VSMain;
* @author Paul C. Buetow
*/
public class VSProcessRecoverEvent extends VSAbstractEvent
- implements VSCopyableEvent {
+ implements VSCopyableEvent {
/* (non-Javadoc)
* @see events.VSCopyableEvent#initCopy(events.VSAbstractEvent)
*/
@@ -29,7 +29,7 @@ public class VSProcessRecoverEvent extends VSAbstractEvent
* @see events.VSAbstractEvent#createShortname()()
*/
protected String createShortname(String savedShortname) {
- return VSMain.prefs.getString("lang.en.process.recover");
+ return VSMain.prefs.getString("lang.process.recover");
}
/* (non-Javadoc)
@@ -38,7 +38,7 @@ public class VSProcessRecoverEvent extends VSAbstractEvent
public void onStart() {
if (process.isCrashed()) {
process.isCrashed(false);
- log(prefs.getString("lang.en.recovered"));
+ log(prefs.getString("lang.recovered"));
}
}
}
diff --git a/sources/events/internal/VSAbstractInternalEvent.java b/sources/events/internal/VSAbstractInternalEvent.java
index e8e2d13..33e3763 100644
--- a/sources/events/internal/VSAbstractInternalEvent.java
+++ b/sources/events/internal/VSAbstractInternalEvent.java
@@ -18,7 +18,7 @@ abstract public class VSAbstractInternalEvent extends VSAbstractEvent {
* @see events.VSAbstractEvent#createShortname()()
*/
protected String createShortname(String savedShortname) {
- return savedShortname;
+ return savedShortname;
}
/* (non-Javadoc)
diff --git a/sources/events/internal/VSMessageReceiveEvent.java b/sources/events/internal/VSMessageReceiveEvent.java
index 323a6d8..51ae926 100644
--- a/sources/events/internal/VSMessageReceiveEvent.java
+++ b/sources/events/internal/VSMessageReceiveEvent.java
@@ -11,7 +11,7 @@ import serialize.VSNotSerializable;
* @author Paul C. Buetow
*/
public class VSMessageReceiveEvent extends VSAbstractInternalEvent
- implements VSNotSerializable {
+ implements VSNotSerializable {
/** The message. */
private VSMessage message;
@@ -53,7 +53,7 @@ public class VSMessageReceiveEvent extends VSAbstractInternalEvent
process.updateVectorTime(message.getVectorTime());
StringBuffer buffer = new StringBuffer();
- buffer.append(prefs.getString("lang.en.message.recv"));
+ buffer.append(prefs.getString("lang.message.recv"));
buffer.append("; ");
buffer.append(message);;
log(buffer.toString());
diff --git a/sources/events/internal/VSProtocolEvent.java b/sources/events/internal/VSProtocolEvent.java
index c39b639..de630e3 100644
--- a/sources/events/internal/VSProtocolEvent.java
+++ b/sources/events/internal/VSProtocolEvent.java
@@ -21,7 +21,7 @@ import serialize.VSSerialize;
* @author Paul C. Buetow
*/
public class VSProtocolEvent extends VSAbstractInternalEvent
- implements VSCopyableEvent {
+ implements VSCopyableEvent {
/** The protocol classname. */
private String protocolClassname;
@@ -116,13 +116,13 @@ public class VSProtocolEvent extends VSAbstractInternalEvent
buffer.append(" ");
buffer.append(isClientProtocol
- ? prefs.getString("lang.en.client")
- : prefs.getString("lang.en.server"));
+ ? prefs.getString("lang.client")
+ : prefs.getString("lang.server"));
buffer.append(" ");
buffer.append(isProtocolActivation
- ? prefs.getString("lang.en.activated")
- : prefs.getString("lang.en.deactivated"));
+ ? prefs.getString("lang.activated")
+ : prefs.getString("langactivated"));
log(buffer.toString());
}
diff --git a/sources/events/internal/VSProtocolScheduleEvent.java b/sources/events/internal/VSProtocolScheduleEvent.java
index 9c708ad..c940212 100644
--- a/sources/events/internal/VSProtocolScheduleEvent.java
+++ b/sources/events/internal/VSProtocolScheduleEvent.java
@@ -16,7 +16,7 @@ import serialize.VSSerialize;
* @author Paul C. Buetow
*/
public class VSProtocolScheduleEvent extends VSAbstractInternalEvent
- implements VSNotSerializable {
+ implements VSNotSerializable {
/** The event is a server protocol schedule. */
private boolean isServerSchedule; /* true = server, false = client */
diff --git a/sources/prefs/VSDefaultPrefs.java b/sources/prefs/VSDefaultPrefs.java
index cfa579c..aa41143 100644
--- a/sources/prefs/VSDefaultPrefs.java
+++ b/sources/prefs/VSDefaultPrefs.java
@@ -45,139 +45,139 @@ public class VSDefaultPrefs extends VSSerializablePrefs {
* Fill with default strings.
*/
public void fillDefaultStrings() {
- initString("lang.en.about", "About");
- initString("lang.en.about.info", "This program used to be the diploma thesis of Paul C. Buetow. Please contact vs-sim@dev.buetow.org, if you find any errors!");
- initString("lang.en.activate", "activate");
- initString("lang.en.activated", "activated");
- initString("lang.en.actualize", "Activation");
- initString("lang.en.all", "All");
- initString("lang.en.antialiasing", "Anti-Aliasing");
- initString("lang.en.cancel", "Abort");
- initString("lang.en.client", "Client");
- initString("lang.en.clientrequest.start", "Start client request");
- initString("lang.en.close", "Close");
- initString("lang.en.colorchooser", "Color chooser");
- initString("lang.en.colorchooser2", "Please select color");
- initString("lang.en.copy", "Copy");
- initString("lang.en.crashed", "Crashed");
- initString("lang.en.dat", "Simulation (.dat)");
- initString("lang.en.deactivate", "deactivate");
- initString("lang.en.deactivated", "deactivated");
- initString("lang.en.default", "Defaults");
- initString("lang.en.edit", "Edit");
- initString("lang.en.editor", "Editor");
- initString("lang.en.event", "Event");
- initString("lang.en.event.add.global", "Insert global event");
- initString("lang.en.event.add.local", "Insert local event");
- initString("lang.en.event.add.time", "at");
- initString("lang.en.events", "Events");
- initString("lang.en.events.process", "Process events");
- initString("lang.en.file", "File");
- initString("lang.en.filter", "Filter");
- initString("lang.en.loging.active", "Logging");
- initString("lang.en.loging.clear", "Delete logs");
- initString("lang.en.message", "Message");
- initString("lang.en.message.recv", "Message received");
- initString("lang.en.message.sent", "Message sent");
- initString("lang.en.mode.expert", "Expert mode");
- initString("lang.en.name", "VS-Simulator 1.1");
- initString("lang.en.ok", "OK");
- initString("lang.en.open", "Open");
- initString("lang.en.pause", "Paus");
- initString("lang.en.prefs", "Preferences");
- initString("lang.en.prefs.color", "Color preferences");
- initString("lang.en.prefs.diverse", "Diverse preferences");
- initString("lang.en.prefs.ext", "Extended preferences");
- initString("lang.en.prefs.message", "Message preferences");
- initString("lang.en.prefs.message.defaults", "Message prefs. for new processes");
- initString("lang.en.prefs.more", "More preferences");
- initString("lang.en.prefs.process", "Process preferences");
- initString("lang.en.prefs.process", "Standard process preferences");
- initString("lang.en.prefs.process.defaults", "Preferences for new processes");
- initString("lang.en.prefs.process.ext", "Extended process preferences");
- initString("lang.en.prefs.protocols", "Protocol preferences");
- initString("lang.en.prefs.simulator", "Simulator preferences");
- initString("lang.en.process", "Process");
- initString("lang.en.process.add.new", "Insert new process");
- initString("lang.en.process.crash", "Crash process");
- initString("lang.en.process.edit", "Edit process");
- initString("lang.en.process.id", "PID");
- initString("lang.en.process.new", "New process");
- initString("lang.en.process.not.selected", "No process selected");
- initString("lang.en.process.recover", "Recover process");
- initString("lang.en.process.remove", "Remove process");
- initString("lang.en.process.selected", "Selected process");
- initString("lang.en.process.time.local", "Local time");
- initString("lang.en.processes.all", "All processes");
- initString("lang.en.protocol", "Protocol");
- initString("lang.en.protocol.client", "Client side");
- initString("lang.en.protocol.editor", "Protocol editor");
- initString("lang.en.protocol.server", "Server side");
- initString("lang.en.protocol.tasks.activation", "Client-/Server protocol activation");
- initString("lang.en.protocol.tasks.client", "Client Task-Manager (Client request)");
- initString("lang.en.protocols", "Protocols");
- initString("lang.en.quit", "Quit");
- initString("lang.en.recovered", "Recovered");
- initString("lang.en.remove", "Remove");
- initString("lang.en.replay", "Repeat");
- initString("lang.en.reset", "Reset");
- initString("lang.en.save", "Save");
- initString("lang.en.saveas", "Save as");
- initString("lang.en.server", "Server");
- initString("lang.en.serverrequest.start", "Start server request");
- initString("lang.en.simulator", "Simulator");
- initString("lang.en.simulator.close", "Close simulation");
- initString("lang.en.simulator.finished", "Simulation closed");
- initString("lang.en.simulator.new", "New simulation");
- initString("lang.en.simulator.paused", "Simulation paused");
- initString("lang.en.simulator.resetted", "Simulation resetted");
- initString("lang.en.simulator.started", "Simulation started");
- initString("lang.en.start", "Start");
- initString("lang.en.stop", "Stop");
- initString("lang.en.takeover", "Take over");
- initString("lang.en.task", "Task");
- initString("lang.en.task.manager", "Event editor");
- initString("lang.en.tasks.fullfilled", "Fullfilled tasks");
- initString("lang.en.tasks.global", "GLobal tasks");
- initString("lang.en.tasks.local", "Local tasks");
- initString("lang.en.time", "Time");
- initString("lang.en.time.lamport", "Lamport time");
- initString("lang.en.time.vector", "Vector time");
- initString("lang.en.timed.global", "Global events");
- initString("lang.en.timed.local", "Local events");
- initString("lang.en.type", "Type");
- initString("lang.en.value", "Value");
- initString("lang.en.variable", "Variable");
- initString("lang.en.variables", "Variables");
- initString("lang.en.variables.global", "Global variables");
- initString("lang.en.window.close", "Close window");
- initString("lang.en.window.new", "New window");
+ initString("lang.about", "About");
+ initString("lang.about.info", "This program used to be the diploma thesis of Paul C. Buetow. Please contact vs-sim@dev.buetow.org, if you find any errors!");
+ initString("lang.activate", "activate");
+ initString("lang.activated", "activated");
+ initString("lang.actualize", "Activation");
+ initString("lang.all", "All");
+ initString("lang.antialiasing", "Anti-Aliasing");
+ initString("lang.cancel", "Abort");
+ initString("lang.client", "Client");
+ initString("lang.clientrequest.start", "Start client request");
+ initString("lang.close", "Close");
+ initString("lang.colorchooser", "Color chooser");
+ initString("lang.colorchooser2", "Please select color");
+ initString("lang.copy", "Copy");
+ initString("lang.crashed", "Crashed");
+ initString("lang.dat", "Simulation (.dat)");
+ initString("langactivate", "deactivate");
+ initString("langactivated", "deactivated");
+ initString("lang.default", "Defaults");
+ initString("lang.edit", "Edit");
+ initString("lang.editor", "Editor");
+ initString("lang.event", "Event");
+ initString("lang.event.add.global", "Insert global event");
+ initString("lang.event.add.local", "Insert local event");
+ initString("lang.event.add.time", "at");
+ initString("lang.events", "Events");
+ initString("lang.events.process", "Process events");
+ initString("lang.file", "File");
+ initString("lang.filter", "Filter");
+ initString("lang.loging.active", "Logging");
+ initString("lang.loging.clear", "Delete logs");
+ initString("lang.message", "Message");
+ initString("lang.message.recv", "Message received");
+ initString("lang.message.sent", "Message sent");
+ initString("lang.mode.expert", "Expert mode");
+ initString("lang.name", "VS-Simulator 1.1");
+ initString("lang.ok", "OK");
+ initString("lang.open", "Open");
+ initString("lang.pause", "Pause");
+ initString("lang.prefs", "Preferences");
+ initString("lang.prefs.color", "Color preferences");
+ initString("lang.prefs.diverse", "Diverse preferences");
+ initString("lang.prefs.ext", "Extended preferences");
+ initString("lang.prefs.message", "Message preferences");
+ initString("lang.prefs.message.defaults", "Message prefs. for new processes");
+ initString("lang.prefs.more", "More preferences");
+ initString("lang.prefs.process", "Process preferences");
+ initString("lang.prefs.process", "Standard process preferences");
+ initString("lang.prefs.process.defaults", "Preferences for new processes");
+ initString("lang.prefs.process.ext", "Extended process preferences");
+ initString("lang.prefs.protocols", "Protocol preferences");
+ initString("lang.prefs.simulator", "Simulator preferences");
+ initString("lang.process", "Process");
+ initString("lang.process.add.new", "Insert new process");
+ initString("lang.process.crash", "Crash process");
+ initString("lang.process.edit", "Edit process");
+ initString("lang.process.id", "PID");
+ initString("lang.process.new", "New process");
+ initString("lang.process.not.selected", "No process selected");
+ initString("lang.process.recover", "Recover process");
+ initString("lang.process.remove", "Remove process");
+ initString("lang.process.selected", "Selected process");
+ initString("lang.process.time.local", "Local time");
+ initString("lang.processes.all", "All processes");
+ initString("lang.protocol", "Protocol");
+ initString("lang.protocol.client", "Client side");
+ initString("lang.protocol.editor", "Protocol editor");
+ initString("lang.protocol.server", "Server side");
+ initString("lang.protocol.tasks.activation", "Client-/Server protocol activation");
+ initString("lang.protocol.tasks.client", "Client Task-Manager (Client request)");
+ initString("lang.protocols", "Protocols");
+ initString("lang.quit", "Quit");
+ initString("lang.recovered", "Recovered");
+ initString("lang.remove", "Remove");
+ initString("lang.replay", "Repeat");
+ initString("lang.reset", "Reset");
+ initString("lang.save", "Save");
+ initString("lang.saveas", "Save as");
+ initString("lang.server", "Server");
+ initString("lang.serverrequest.start", "Start server request");
+ initString("lang.simulator", "Simulator");
+ initString("lang.simulator.close", "Close simulation");
+ initString("lang.simulator.finished", "Simulation closed");
+ initString("lang.simulator.new", "New simulation");
+ initString("lang.simulator.paused", "Simulation paused");
+ initString("lang.simulator.resetted", "Simulation resetted");
+ initString("lang.simulator.started", "Simulation started");
+ initString("lang.start", "Start");
+ initString("lang.stop", "Stop");
+ initString("lang.takeover", "Take over");
+ initString("lang.task", "Task");
+ initString("lang.task.manager", "Event editor");
+ initString("lang.tasks.fullfilled", "Fullfilled tasks");
+ initString("lang.tasks.global", "GLobal tasks");
+ initString("lang.tasks.local", "Local tasks");
+ initString("lang.time", "Time");
+ initString("lang.time.lamport", "Lamport time");
+ initString("lang.time.vector", "Vector time");
+ initString("lang.timed.global", "Global events");
+ initString("lang.timed.local", "Local events");
+ initString("lang.type", "Type");
+ initString("lang.value", "Value");
+ initString("lang.variable", "Variable");
+ initString("lang.variables", "Variables");
+ initString("lang.variables.global", "Global variables");
+ initString("lang.window.close", "Close window");
+ initString("lang.window.new", "New window");
/* Protocol names */
- initString("lang.en.events.implementations.VSProcessCrashEvent", "Process Crash Event");
- initString("lang.en.events.implementations.VSProcessCrashEvent.short", "Process Crash");
- initString("lang.en.events.implementations.VSProcessRecoverEvent", "Process Recover Event");
- initString("lang.en.events.implementations.VSProcessRecoverEvent.short", "Process Recover");
- initString("lang.en.protocols.implementations.VSBasicMulticastProtocol", "Basic Multicast Protocol");
- initString("lang.en.protocols.implementations.VSBasicMulticastProtocol.short", "Basic Multicast");
- initString("lang.en.protocols.implementations.VSBerkelyTimeProtocol", "Berkley algorithm for internal sync.");
- initString("lang.en.protocols.implementations.VSBerkelyTimeProtocol.short", "Berkley Protocol");
- initString("lang.en.protocols.implementations.VSBroadcastProtocol", "Broadcast Protocol");
- initString("lang.en.protocols.implementations.VSBroadcastProtocol.short", "Broadcast");
- initString("lang.en.protocols.implementations.VSDummyProtocol", "Example/Dummy Protocol");
- initString("lang.en.protocols.implementations.VSDummyProtocol.short", "Example/Dummy");
- initString("lang.en.protocols.implementations.VSExternalTimeSyncProtocol", "Christians method for external sync.");
- initString("lang.en.protocols.implementations.VSExternalTimeSyncProtocol.short", "Christians");
- initString("lang.en.protocols.implementations.VSInternalTimeSyncProtocol", "Internal Synchronization Protocol");
- initString("lang.en.protocols.implementations.VSInternalTimeSyncProtocol.short", "Internal sync.");
- initString("lang.en.protocols.implementations.VSOnePhaseCommitProtocol", "One-Phase Commit Protocol");
- initString("lang.en.protocols.implementations.VSOnePhaseCommitProtocol.short", "1-Phase Commit");
- initString("lang.en.protocols.implementations.VSPingPongProtocol", "Ping-Pong Protocol");
- initString("lang.en.protocols.implementations.VSPingPongProtocol.short", "Ping-Pong");
- initString("lang.en.protocols.implementations.VSReliableMulticastProtocol", "Reliable Multicast Protocol");
- initString("lang.en.protocols.implementations.VSReliableMulticastProtocol.short", "Reliable Multicast");
- initString("lang.en.protocols.implementations.VSTwoPhaseCommitProtocol", "Two-Phase Commit");
- initString("lang.en.protocols.implementations.VSTwoPhaseCommitProtocol.short", "2-Phase Commit");
+ initString("lang.events.implementations.VSProcessCrashEvent", "Process Crash Event");
+ initString("lang.events.implementations.VSProcessCrashEvent.short", "Process Crash");
+ initString("lang.events.implementations.VSProcessRecoverEvent", "Process Recover Event");
+ initString("lang.events.implementations.VSProcessRecoverEvent.short", "Process Recover");
+ initString("lang.protocols.implementations.VSBasicMulticastProtocol", "Basic Multicast Protocol");
+ initString("lang.protocols.implementations.VSBasicMulticastProtocol.short", "Basic Multicast");
+ initString("lang.protocols.implementations.VSBerkelyTimeProtocol", "Berkley algorithm for internal sync.");
+ initString("lang.protocols.implementations.VSBerkelyTimeProtocol.short", "Berkley Protocol");
+ initString("lang.protocols.implementations.VSBroadcastProtocol", "Broadcast Protocol");
+ initString("lang.protocols.implementations.VSBroadcastProtocol.short", "Broadcast");
+ initString("lang.protocols.implementations.VSDummyProtocol", "Example/Dummy Protocol");
+ initString("lang.protocols.implementations.VSDummyProtocol.short", "Example/Dummy");
+ initString("lang.protocols.implementations.VSExternalTimeSyncProtocol", "Christians method for external sync.");
+ initString("lang.protocols.implementations.VSExternalTimeSyncProtocol.short", "Christians");
+ initString("lang.protocols.implementations.VSInternalTimeSyncProtocol", "Internal Synchronization Protocol");
+ initString("lang.protocols.implementations.VSInternalTimeSyncProtocol.short", "Internal sync.");
+ initString("lang.protocols.implementations.VSOnePhaseCommitProtocol", "One-Phase Commit Protocol");
+ initString("lang.protocols.implementations.VSOnePhaseCommitProtocol.short", "1-Phase Commit");
+ initString("lang.protocols.implementations.VSPingPongProtocol", "Ping-Pong Protocol");
+ initString("lang.protocols.implementations.VSPingPongProtocol.short", "Ping-Pong");
+ initString("lang.protocols.implementations.VSReliableMulticastProtocol", "Reliable Multicast Protocol");
+ initString("lang.protocols.implementations.VSReliableMulticastProtocol.short", "Reliable Multicast");
+ initString("lang.protocols.implementations.VSTwoPhaseCommitProtocol", "Two-Phase Commit");
+ initString("lang.protocols.implementations.VSTwoPhaseCommitProtocol.short", "2-Phase Commit");
}
/**
diff --git a/sources/prefs/VSDefaultPrefsDE.java b/sources/prefs/VSDefaultPrefsDE.java
deleted file mode 100644
index fb2eacb..0000000
--- a/sources/prefs/VSDefaultPrefsDE.java
+++ /dev/null
@@ -1,249 +0,0 @@
-package prefs;
-
-import java.awt.Color;
-import java.awt.event.KeyEvent;
-
-/**
- * The class VSDefaultPrefsDE, makes sure that the simulator has its default
- * configuration values.
- *
- * @author Paul C. Buetow
- */
-public class VSDefaultPrefsDE extends VSSerializablePrefs {
- /**
- * Inits a prefs object with default values.
- *
- * @return the lang.process.removeprefs
- */
- public static VSPrefs init() {
- VSDefaultPrefsDE prefs = new VSDefaultPrefsDE();