package simizer.event;

public class EventProducer implements IEventProducer {

  protected Channel chan;

  @Override
  public Channel getOutputChannel() {
    return this.chan;
  }

  @Override
  public void registerEvent(Event evt) {
    chan.registerEvent(evt);
  }

  @Override
  public void setChannel(Channel c) {
    this.chan = c;
  }

  public boolean cancelEvent(Event e) {
    return chan.remove(e);
  }

}

@@ -17,16 +17,307 @@
 event;%0A%0A
+/**%0A * Provides a simple class implementation of %7B@code IEventProducer%7D.%0A * %3Cp%3E%0A * This class provides a class implementation of the %7B@link IEventProducer%7D%0A * interface.  This allows other classes to easily add the functionality of%0A * %7B@link IEventProducer%7D by deriving from this class.%0A */%0A
 public c
@@ -364,16 +364,73 @@
 ucer %7B%0A%0A
+  /** The channel used by this %7B@code EventProducer%7D. */%0A
   protec
@@ -445,16 +445,19 @@
 nel chan
+nel
 ;%0A%0A  @Ov
@@ -521,16 +521,19 @@
 his.chan
+nel
 ;%0A  %7D%0A%0A 
@@ -579,16 +579,18 @@
 Event ev
+en
 t) %7B%0A   
@@ -594,16 +594,19 @@
     chan
+nel
 .registe
@@ -614,16 +614,18 @@
 Event(ev
+en
 t);%0A  %7D%0A
@@ -671,16 +671,22 @@
 hannel c
+hannel
 ) %7B%0A    
@@ -698,12 +698,21 @@
 chan
+nel
  = c
+hannel
 ;%0A  
@@ -750,16 +750,20 @@
 (Event e
+vent
 ) %7B%0A    
@@ -773,16 +773,19 @@
 urn chan
+nel
 .remove(
@@ -785,16 +785,20 @@
 remove(e
+vent
 );%0A  %7D%0A%0A

Add documentation to EventProducer.