コード例 #1
0
 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);
 }
コード例 #2
0
 public void initialize() {
   entity.schedule("fireSimEvent", period);
 }