Reworked UI & renamed plugins

This commit is contained in:
2015-01-01 23:17:32 +01:00
parent 8dcfdf9b8d
commit 2054426bcf
144 changed files with 2335 additions and 2637 deletions

1
com.itjw.txviewer.database/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/bin

View File

@@ -4,7 +4,6 @@ Bundle-Name: Transaction Database
Bundle-SymbolicName: com.itjw.txviewer.database
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: ITJW
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-ActivationPolicy: lazy
Export-Package: com.itjw.txviewer.database
Require-Bundle: org.eclipse.ui.views

View File

@@ -11,8 +11,11 @@
package com.itjw.txviewer.database;
public class EventTime implements Comparable<EventTime>{
public static final double NS = 1000000.0;
public static final double MS = 1000000000.0;
private long value; // unit is femto seconds
public EventTime(Long value, String unit){
@@ -51,6 +54,8 @@ public class EventTime implements Comparable<EventTime>{
this.value=value*1000000000;
else if("ms".compareToIgnoreCase(unit)==0)
this.value=value*1000000000000L;
else if("s".compareToIgnoreCase(unit)==0)
this.value=value*1000000000000000L;
else {
System.err.print("Don't know what to do with "+unit+"\n");
}

View File

@@ -11,6 +11,8 @@
package com.itjw.txviewer.database;
public interface ITrAttrType {
enum AttributeType {UNSPECIFIED, BEGIN, END};
public String getName();
public String getType();
public String getDataType();
public AttributeType getType();
}

View File

@@ -18,6 +18,8 @@ public interface ITrDb extends ITrHierNode {
public EventTime getMaxTime();
public ITrStream getStreamByName(String name);
public List<ITrStream> getAllStreams();
public void load(InputStream inp) throws InputFormatException;

View File

@@ -0,0 +1,10 @@
package com.itjw.txviewer.database;
public interface ITrRelation {
RelationType getRelationType();
ITransaction getSource();
ITransaction getTarget();
}

View File

@@ -10,16 +10,25 @@
*******************************************************************************/
package com.itjw.txviewer.database;
import java.util.Collection;
import java.util.List;
import java.util.Set;
public interface ITransaction {
public Long getId();
public ITrStream getStream();
public ITrGenerator getGenerator();
public EventTime getBeginTime();
public EventTime getEndTime();
public List<ITrAttribute> getBeginAttrs();
public List<ITrAttribute> getEndAttrs();
public List<ITrAttribute> getAttributes();
public Set<ITransaction> getNextInRelationship(RelationType rel);
public Collection<ITrRelation> getIncomingRelations();
public Collection<ITrRelation> getOutgoingRelations();
}

View File

@@ -0,0 +1,7 @@
package com.itjw.txviewer.database;
public interface ITransactionDbFactory {
ITrDb createDatabase();
}

View File

@@ -10,6 +10,21 @@
*******************************************************************************/
package com.itjw.txviewer.database;
public enum RelationType {
PREDECESSOR, SUCCESSOR, PREVIOUS, NEXT, PARENT, CHILD;
public class RelationType {
private String name;
public RelationType(String name) {
super();
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}