summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-08-14 06:30:15 +0000
committerPaul Buetow <paul@buetow.org>2008-08-14 06:30:15 +0000
commit3a8c6531a45bc72842f92c68afc5cae1a7ed92a9 (patch)
treef7d5ea387871b2e1caa64ddeb01cad76b7bc101f
parent286a28082bbbe386c992ae0b098a1efcf2660376 (diff)
final
-rw-r--r--ROADMAP7
-rw-r--r--sources/core/VSTask.java5
-rw-r--r--sources/prefs/editors/VSAbstractEditor.java54
-rw-r--r--sources/simulator/VSLogging.java2
-rw-r--r--sources/utils/VS3Tupel.java (renamed from sources/utils/VSTupel.java)6
5 files changed, 31 insertions, 43 deletions
diff --git a/ROADMAP b/ROADMAP
index f2ac831..00be321 100644
--- a/ROADMAP
+++ b/ROADMAP
@@ -1,10 +1,3 @@
-TODO
-hot links
-siehe spaeter -> kapitel ()
- P1 -> Prozess 1?
-Must do:
- Literaturangaben komplettieren
-
Evtl.:
Beschreiben, dass Aktivierung/Deaktivierung prioritaet hat bei Ereigniseditor
Ereigniseintritt bei Lamport und Vektorzeiten?
diff --git a/sources/core/VSTask.java b/sources/core/VSTask.java
index 12a7dbb..ccb4d98 100644
--- a/sources/core/VSTask.java
+++ b/sources/core/VSTask.java
@@ -346,11 +346,6 @@ public class VSTask implements Comparable, VSSerializable {
return event;
}
- /**
- * Logg a message.
- *
- * @param message the message to log
- */
/*
private void log(String message) {
process.log(message);
diff --git a/sources/prefs/editors/VSAbstractEditor.java b/sources/prefs/editors/VSAbstractEditor.java
index e793a3c..8f03ba4 100644
--- a/sources/prefs/editors/VSAbstractEditor.java
+++ b/sources/prefs/editors/VSAbstractEditor.java
@@ -337,7 +337,7 @@ public abstract class VSAbstractEditor implements ActionListener {
*
* @return the tupel representing the component
*/
- protected VSTupel<String,Component,JComboBox> createIntegerComponent(
+ protected VS3Tupel<String,Component,JComboBox> createIntegerComponent(
String fullKey, String key, VSPrefs prefsToEdit) {
String descr = prefsToEdit.getDescription(fullKey);
String label = descr == null ? fullKey : descr;
@@ -365,7 +365,7 @@ public abstract class VSAbstractEditor implements ActionListener {
valComboBox.addItem(new Integer(i));
valComboBox.setBorder(null);
- return new VSTupel<String,Component,JComboBox>(label,
+ return new VS3Tupel<String,Component,JComboBox>(label,
createUnitPanel(prefsToEdit, valComboBox, fullKey),
valComboBox);
}
@@ -379,7 +379,7 @@ public abstract class VSAbstractEditor implements ActionListener {
*
* @return the tupel representing the component
*/
- protected VSTupel<String,Component,JTextField> createVectorComponent(
+ protected VS3Tupel<String,Component,JTextField> createVectorComponent(
String fullKey, String key, VSPrefs prefsToEdit) {
String descr = prefsToEdit.getDescription(fullKey);
String label = descr == null ? fullKey : descr;
@@ -389,7 +389,7 @@ public abstract class VSAbstractEditor implements ActionListener {
valField.setBorder(null);
valField.setText(vec.toString());
- return new VSTupel<String,Component,JTextField>(label,
+ return new VS3Tupel<String,Component,JTextField>(label,
createUnitPanel(prefsToEdit, valField, fullKey), valField);
}
@@ -400,7 +400,7 @@ public abstract class VSAbstractEditor implements ActionListener {
* @param key the key
* @param prefsToEdit the prefs to edit
*/
- protected VSTupel<String,Component,JCheckBox> createBooleanComponent(
+ protected VS3Tupel<String,Component,JCheckBox> createBooleanComponent(
String fullKey, String key, VSPrefs prefsToEdit) {
final String activated = prefs.getString("lang.activated");
String descr = prefsToEdit.getDescription(fullKey);
@@ -409,7 +409,7 @@ public abstract class VSAbstractEditor implements ActionListener {
prefsToEdit.getBoolean(key));
valField.setBackground(Color.WHITE);
valField.setBorder(null);
- return new VSTupel<String,Component,JCheckBox>(label,
+ return new VS3Tupel<String,Component,JCheckBox>(label,
createUnitPanel(prefsToEdit, valField, fullKey), valField);
}
@@ -422,7 +422,7 @@ public abstract class VSAbstractEditor implements ActionListener {
*
* @return the tupel representing the component
*/
- protected VSTupel<String,Component,JTextField> createLongComponent(
+ protected VS3Tupel<String,Component,JTextField> createLongComponent(
String fullKey, String key, VSPrefs prefsToEdit) {
String descr = prefsToEdit.getDescription(fullKey);
String label = descr == null ? fullKey : descr;
@@ -436,7 +436,7 @@ public abstract class VSAbstractEditor implements ActionListener {
});
valField.setText(""+prefsToEdit.getLong(key));
valField.setBorder(null);
- return new VSTupel<String,Component,JTextField>(label,
+ return new VS3Tupel<String,Component,JTextField>(label,
createUnitPanel(prefsToEdit, valField, fullKey), valField);
}
@@ -449,7 +449,7 @@ public abstract class VSAbstractEditor implements ActionListener {
*
* @return the tupel representing the component
*/
- protected VSTupel<String,Component,JTextField> createFloatComponent(
+ protected VS3Tupel<String,Component,JTextField> createFloatComponent(
String fullKey, String key, VSPrefs prefsToEdit) {
String descr = prefsToEdit.getDescription(fullKey);
String label = descr == null ? fullKey : descr;
@@ -463,7 +463,7 @@ public abstract class VSAbstractEditor implements ActionListener {
});
valField.setText(""+prefsToEdit.getFloat(key));
valField.setBorder(null);
- return new VSTupel<String,Component,JTextField>(label,
+ return new VS3Tupel<String,Component,JTextField>(label,
createUnitPanel(prefsToEdit, valField, fullKey), valField);
}
@@ -476,7 +476,7 @@ public abstract class VSAbstractEditor implements ActionListener {
*
* @return the tupel representing the component
*/
- protected VSTupel<String,Component,JTextField> createColorComponent(
+ protected VS3Tupel<String,Component,JTextField> createColorComponent(
String fullKey, String key, final VSPrefs prefsToEdit) {
String descr = prefsToEdit.getDescription(fullKey);
String label = descr == null ? fullKey : descr;
@@ -507,7 +507,7 @@ public abstract class VSAbstractEditor implements ActionListener {
}
});
valField.setBorder(null);
- return new VSTupel<String,Component,JTextField>(label,
+ return new VS3Tupel<String,Component,JTextField>(label,
createUnitPanel(prefsToEdit, valField, fullKey), valField);
}
@@ -520,7 +520,7 @@ public abstract class VSAbstractEditor implements ActionListener {
*
* @return the tupel representing the component
*/
- protected VSTupel<String,Component,JTextField> createStringComponent(
+ protected VS3Tupel<String,Component,JTextField> createStringComponent(
String fullKey, String key, VSPrefs prefsToEdit) {
String descr = prefsToEdit.getDescription(fullKey);
String label = descr == null ? fullKey : descr;
@@ -534,7 +534,7 @@ public abstract class VSAbstractEditor implements ActionListener {
});
valField.setText(prefsToEdit.getString(key));
valField.setBorder(null);
- return new VSTupel<String,Component,JTextField>(label,
+ return new VS3Tupel<String,Component,JTextField>(label,
createUnitPanel(prefsToEdit, valField, fullKey), valField);
}
@@ -557,7 +557,7 @@ public abstract class VSAbstractEditor implements ActionListener {
for (String key : integerKeys) {
String fullKey = VSPrefs.INTEGER_PREFIX + key;
- VSTupel<String,Component,JComboBox> tupel =
+ VS3Tupel<String,Component,JComboBox> tupel =
createIntegerComponent(fullKey, key, prefsToEdit);
labels.put(fullKey, tupel.getA());
components.put(fullKey, tupel.getB());
@@ -566,7 +566,7 @@ public abstract class VSAbstractEditor implements ActionListener {
for (String key : vectorKeys) {
String fullKey = VSPrefs.VECTOR_PREFIX + key;
- VSTupel<String,Component,JTextField> tupel =
+ VS3Tupel<String,Component,JTextField> tupel =
createVectorComponent(fullKey, key, prefsToEdit);
labels.put(fullKey, tupel.getA());
components.put(fullKey, tupel.getB());
@@ -575,7 +575,7 @@ public abstract class VSAbstractEditor implements ActionListener {
for (String key : booleanKeys) {
String fullKey = VSPrefs.BOOLEAN_PREFIX + key;
- VSTupel<String,Component,JCheckBox> tupel =
+ VS3Tupel<String,Component,JCheckBox> tupel =
createBooleanComponent(fullKey, key, prefsToEdit);
labels.put(fullKey, tupel.getA());
components.put(fullKey, tupel.getB());
@@ -584,7 +584,7 @@ public abstract class VSAbstractEditor implements ActionListener {
for (String key : longKeys) {
String fullKey = VSPrefs.LONG_PREFIX + key;
- VSTupel<String,Component,JTextField> tupel =
+ VS3Tupel<String,Component,JTextField> tupel =
createLongComponent(fullKey, key, prefsToEdit);
labels.put(fullKey, tupel.getA());
components.put(fullKey, tupel.getB());
@@ -594,7 +594,7 @@ public abstract class VSAbstractEditor implements ActionListener {
for (String key : floatKeys) {
String fullKey = VSPrefs.FLOAT_PREFIX + key;
- VSTupel<String,Component,JTextField> tupel =
+ VS3Tupel<String,Component,JTextField> tupel =
createFloatComponent(fullKey, key, prefsToEdit);
labels.put(fullKey, tupel.getA());
components.put(fullKey, tupel.getB());
@@ -604,7 +604,7 @@ public abstract class VSAbstractEditor implements ActionListener {
for (String key : colorKeys) {
String fullKey = VSPrefs.COLOR_PREFIX + key;
- VSTupel<String,Component,JTextField> tupel =
+ VS3Tupel<String,Component,JTextField> tupel =
createColorComponent(fullKey, key, prefsToEdit);
labels.put(fullKey, tupel.getA());
components.put(fullKey, tupel.getB());
@@ -613,7 +613,7 @@ public abstract class VSAbstractEditor implements ActionListener {
for (String key : stringKeys) {
String fullKey = VSPrefs.STRING_PREFIX + key;
- VSTupel<String,Component,JTextField> tupel =
+ VS3Tupel<String,Component,JTextField> tupel =
createStringComponent(fullKey, key, prefsToEdit);
labels.put(fullKey, tupel.getA());
components.put(fullKey, tupel.getB());
@@ -765,42 +765,42 @@ public abstract class VSAbstractEditor implements ActionListener {
for (String fullKey : fullKeys) {
String key = fullKey.substring(fullKey.indexOf(": ") + 2);
if (fullKey.startsWith(VSPrefs.INTEGER_PREFIX)) {
- VSTupel<String,Component,JComboBox> tupel =
+ VS3Tupel<String,Component,JComboBox> tupel =
createIntegerComponent(fullKey, key, prefsToAdd);
this.integerKeys.add(prefsKey+key);
this.integerFields.put(prefsKey+key, tupel.getC());
addVariable(prefsKey, tupel.getA(), tupel.getB(), prefsToAdd);
} else if (fullKey.startsWith(VSPrefs.VECTOR_PREFIX)) {
- VSTupel<String,Component,JTextField> tupel =
+ VS3Tupel<String,Component,JTextField> tupel =
createVectorComponent(fullKey, key, prefsToAdd);
this.vectorKeys.add(prefsKey+key);
this.vectorFields.put(prefsKey+key, tupel.getC());
addVariable(prefsKey, tupel.getA(), tupel.getB(), prefsToAdd);
} else if (fullKey.startsWith(VSPrefs.BOOLEAN_PREFIX)) {
- VSTupel<String,Component,JCheckBox> tupel =
+ VS3Tupel<String,Component,JCheckBox> tupel =
createBooleanComponent(fullKey, key, prefsToAdd);
this.booleanKeys.add(prefsKey + key);
this.booleanFields.put(prefsKey+key, tupel.getC());
addVariable(prefsKey, tupel.getA(), tupel.getB(), prefsToAdd);
} else if (fullKey.startsWith(VSPrefs.LONG_PREFIX)) {
- VSTupel<String,Component,JTextField> tupel =
+ VS3Tupel<String,Component,JTextField> tupel =
createLongComponent(fullKey, key, prefsToAdd);
this.longKeys.add(prefsKey+key);
this.longFields.put(prefsKey+key, tupel.getC());
addVariable(prefsKey, tupel.getA(), tupel.getB(), prefsToAdd);
} else if (fullKey.startsWith(VSPrefs.FLOAT_PREFIX)) {
- VSTupel<String,Component,JTextField> tupel =
+ VS3Tupel<String,Component,JTextField> tupel =
createFloatComponent(fullKey, key, prefsToAdd);
this.floatKeys.add(prefsKey + key);
this.floatFields.put(prefsKey+key, tupel.getC());
addVariable(prefsKey, tupel.getA(), tupel.getB(), prefsToAdd);
} else if (fullKey.startsWith(VSPrefs.STRING_PREFIX)) {
- VSTupel<String,Component,JTextField> tupel =
+ VS3Tupel<String,Component,JTextField> tupel =
createStringComponent(fullKey, key, prefsToAdd);
this.stringKeys.add(prefsKey + key);
this.stringFields.put(prefsKey+key, tupel.getC());
diff --git a/sources/simulator/VSLogging.java b/sources/simulator/VSLogging.java
index 41fe8e1..f85ad75 100644
--- a/sources/simulator/VSLogging.java
+++ b/sources/simulator/VSLogging.java
@@ -81,7 +81,7 @@ public class VSLogging {
/**
* Sets the simulator canvas.
*
- * @param simulatorVisualization the simulator canvas
+ * @param sv the simulator canvas
*/
public void setSimulatorCanvas(VSSimulatorVisualization sv) {
this.simulatorVisualization = sv;
diff --git a/sources/utils/VSTupel.java b/sources/utils/VS3Tupel.java
index 87bd825..4d4c896 100644
--- a/sources/utils/VSTupel.java
+++ b/sources/utils/VS3Tupel.java
@@ -24,12 +24,12 @@
package utils;
/**
- * The class VSTupel, an object of this class represents a 3-Tupel of objects.
+ * The class VS3Tupel, an object of this class represents a 3-Tupel of objects.
* Each object can have its own type.
*
* @author Paul C. Buetow
*/
-public final class VSTupel<A,B,C> {
+public final class VS3Tupel<A,B,C> {
/** The serial version uid */
private static final long serialVersionUID = 1L;
@@ -49,7 +49,7 @@ public final class VSTupel<A,B,C> {
* @param b the b
* @param c the c
*/
- public VSTupel(A a, B b, C c) {
+ public VS3Tupel(A a, B b, C c) {
this.a = a;
this.b = b;
this.c = c;