summaryrefslogtreecommitdiff
path: root/sources/utils
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-17 14:55:16 +0000
committerPaul Buetow <paul@buetow.org>2008-05-17 14:55:16 +0000
commit271949bf140359dd97cbee9ef927ee9280c9f31f (patch)
tree31cd0e175401d2041e23128402c235eb6d2e3117 /sources/utils
parent5a0924146201bc577ca170952a21a42464ac7c71 (diff)
Vectortimestamps work
Better representation of Lamporttimestamps BerkelyTimeProtocol M trunk/ROADMAP M trunk/sources/prefs/VSPrefs.java M trunk/sources/prefs/VSDefaultPrefs.java M trunk/sources/simulator/VSMain.java M trunk/sources/simulator/VSSimulation.java M trunk/sources/simulator/VSSimulationPanel.java M trunk/sources/utils/VSFrame.java M trunk/sources/utils/VSClassLoader.java M trunk/sources/utils/VSInfoArea.java M trunk/sources/protocols/BroadcastSturmProtocol.java M trunk/sources/protocols/ExternalTimeSyncProtocol.java M trunk/sources/protocols/RegisteredProtocols.java M trunk/sources/protocols/PingPongProtocol.java M trunk/sources/protocols/InternalTimeSyncProtocol.java M trunk/sources/protocols/VSProtocol.java M trunk/sources/protocols/DummyProtocol.java A trunk/sources/protocols/BerkelyTimeProtocol.java M trunk/sources/core/VSLamport.java M trunk/sources/core/VSProcess.java A trunk/sources/core/VSTime.java A trunk/sources/core/VSVectorTime.java M trunk/sources/core/VSTask.java M trunk/sources/core/VSMessage.java M trunk/sources/editors/VSEditor.java M trunk/sources/editors/VSProtocolEditor.java M trunk/sources/editors/VSSimulationEditor.java M trunk/sources/editors/VSEditorFrame.java M trunk/sources/editors/VSProcessEditor.java
Diffstat (limited to 'sources/utils')
-rw-r--r--sources/utils/VSClassLoader.java6
-rw-r--r--sources/utils/VSFrame.java6
-rw-r--r--sources/utils/VSInfoArea.java6
3 files changed, 11 insertions, 7 deletions
diff --git a/sources/utils/VSClassLoader.java b/sources/utils/VSClassLoader.java
index 7d9fdf3..8470f53 100644
--- a/sources/utils/VSClassLoader.java
+++ b/sources/utils/VSClassLoader.java
@@ -1,15 +1,19 @@
package utils;
import java.util.*;
+import java.lang.reflect.*;
import prefs.*;
+import core.*;
public class VSClassLoader extends ClassLoader {
public Object newInstance(String classname) {
Object object = null;
try {
- object = loadClass(classname, true).newInstance();
+ object = super.loadClass(classname, true).newInstance();
+ //Constructor constructors[] = theClass.getConstructors();
+ //object = constructors[0].newInstance(process);
} catch (Exception e) {
System.out.println(e);
diff --git a/sources/utils/VSFrame.java b/sources/utils/VSFrame.java
index 2725729..9bd70a9 100644
--- a/sources/utils/VSFrame.java
+++ b/sources/utils/VSFrame.java
@@ -12,15 +12,15 @@ public class VSFrame extends JFrame {
public VSFrame(String title, Component parent) {
super(title);
- initialize(parent);
+ init(parent);
}
public VSFrame(String title) {
super(title);
- initialize(null);
+ init(null);
}
- private void initialize(Component parent) {
+ private void init(Component parent) {
this.parent = parent;
this.dispose = false;
diff --git a/sources/utils/VSInfoArea.java b/sources/utils/VSInfoArea.java
index 9d3600e..c1afd42 100644
--- a/sources/utils/VSInfoArea.java
+++ b/sources/utils/VSInfoArea.java
@@ -6,15 +6,15 @@ import javax.swing.border.*;
public class VSInfoArea extends JTextPane {
public VSInfoArea() {
- initialize();
+ init();
}
public VSInfoArea(String text) {
setText(text);
- initialize();
+ init();
}
- private void initialize() {
+ private void init() {
setOpaque(false);
setBorder(null);
setFocusable(false);