01: package org.cougaar.core.qos.frame.visualizer.event;
02:
03: import java.util.ArrayList;
04: import java.util.Collection;
05:
06: import javax.swing.event.ChangeEvent;
07:
08: /**
09: * Created by IntelliJ IDEA.
10: * User: mwalczak
11: * Date: Apr 1, 2005
12: * Time: 9:50:02 AM
13: * To change this template use File | Settings | File Templates.
14: */
15: public class TickEvent extends ChangeEvent {
16: int tickNumber;
17: String label;
18: Collection transitions;
19:
20: public TickEvent(Object source, int tickNumber, String label) {
21: this (source, tickNumber, label, new ArrayList());
22: }
23:
24: public TickEvent(Object source, int tickNumber, String label,
25: Collection transitions) {
26: super (source);
27: this .tickNumber = tickNumber;
28: this .label = label;
29: this .transitions = transitions;
30: }
31:
32: public int getTickNumber() {
33: return tickNumber;
34: }
35:
36: public String getLabel() {
37: return label;
38: }
39:
40: public String toString() {
41: return "TickEvent [" + tickNumber + ", " + label
42: + " #transitions=" + transitions.size() + "]";
43: }
44:
45: public Collection getTransitions() {
46: return transitions;
47: }
48: }
|