/** This method is called from a SimProcessAnimation which wants to cooperate as a slave. */ public boolean waitOnCoop() { SimProcess slave = this.currentSimProcess(); boolean out; TimeInstant simTime = this.getModel().presentTime(); boolean init = this.cmdGen.isInitPhase(); Command c; String[] insertSlave = { slave.getName(), Integer.toString(slave.getPriority()), this.slavePriorityAttribute }; if (this.showInAnimation) { try { if (init) c = Command.getCommandInit("setWaitQueue", this.cmdGen.getAnimationTime(simTime)); else c = Command.getCommandTime("setWaitQueue", this.cmdGen.getAnimationTime(simTime)); c.addParameter("WaitQueueId", this.id); c.addParameter("InsertSlave", Parameter.cat(insertSlave)); c.setRemark(this.getGeneratedBy(WaitQueueAnimation.class.getSimpleName())); cmdGen.checkAndLog(c); cmdGen.write(c); } catch (CommandException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } out = super.waitOnCoop(); return out; }