templates.diagram
Class Connector.EventBox.EventPair

java.lang.Object
  extended by templates.diagram.Connector.EventBox.EventPair
All Implemented Interfaces:
java.lang.Comparable<Connector.EventBox.EventPair>
Enclosing class:
Connector.EventBox

protected class Connector.EventBox.EventPair
extends java.lang.Object
implements java.lang.Comparable<Connector.EventBox.EventPair>

A pair of events.

Author:
Lenko Grigorov

Field Summary
 java.lang.String event1
          First event.
 java.lang.String event2
          Second event.
 boolean isEllipses
          Indicates if the event pair does not contain events but instead stands for an abbreviation of event pairs.
 
Constructor Summary
Connector.EventBox.EventPair()
          Construct an event pair which does not contain events but instead stands for an abbreviation of event pairs.
Connector.EventBox.EventPair(java.lang.String event1, java.lang.String event2)
          Construct an event pair.
 
Method Summary
 int compareTo(Connector.EventBox.EventPair o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

event1

public java.lang.String event1
First event.


event2

public java.lang.String event2
Second event.


isEllipses

public boolean isEllipses
Indicates if the event pair does not contain events but instead stands for an abbreviation of event pairs. This is used when there are too many event pairs.

Constructor Detail

Connector.EventBox.EventPair

public Connector.EventBox.EventPair(java.lang.String event1,
                                    java.lang.String event2)
Construct an event pair.

Parameters:
event1 - first event
event2 - second event

Connector.EventBox.EventPair

public Connector.EventBox.EventPair()
Construct an event pair which does not contain events but instead stands for an abbreviation of event pairs.

Method Detail

compareTo

public int compareTo(Connector.EventBox.EventPair o)
Specified by:
compareTo in interface java.lang.Comparable<Connector.EventBox.EventPair>