CISC 323 Intro to Software Engineering
CISC 323 Intro to Software Engineering
CISC 323 Intro to Software Engineering
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
¤<br />
¢ £<br />
¤ ¥<br />
¦ §<br />
¨¥<br />
©�<br />
EventConnec<strong>to</strong>r (Publisher)<br />
Code<br />
public class EventConnec<strong>to</strong>r {<br />
//There are zero or more targets represented as a vec<strong>to</strong>r<br />
private Vec<strong>to</strong>r targets = new Vec<strong>to</strong>r();<br />
}<br />
// When a new event is raised, the "performEvent" method of<br />
// each target is invoked<br />
public void raiseEvent (EventObject e) {<br />
for (int i=0; i