Reworked UI & renamed plugins
This commit is contained in:
1
com.itjw.txviewer.database/.gitignore
vendored
Normal file
1
com.itjw.txviewer.database/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/bin
|
@@ -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
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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");
|
||||
}
|
||||
|
@@ -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();
|
||||
}
|
||||
|
@@ -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;
|
||||
|
@@ -0,0 +1,10 @@
|
||||
package com.itjw.txviewer.database;
|
||||
|
||||
public interface ITrRelation {
|
||||
|
||||
RelationType getRelationType();
|
||||
|
||||
ITransaction getSource();
|
||||
|
||||
ITransaction getTarget();
|
||||
}
|
@@ -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();
|
||||
}
|
||||
|
@@ -0,0 +1,7 @@
|
||||
package com.itjw.txviewer.database;
|
||||
|
||||
public interface ITransactionDbFactory {
|
||||
|
||||
ITrDb createDatabase();
|
||||
|
||||
}
|
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user