public void fireSimEvent() { SimEvent se = new SimEvent(this, entity.getTimeNow()); for (Iterator<?> i = listeners.iterator(); i.hasNext(); ) { ((SimEventListener) i.next()).simEventOccurred(se); } entity.schedule("fireSimEvent", period); }
public void initialize() { entity.schedule("fireSimEvent", period); }