@Override public VisNetwork getVisNetwork() { return visMobsim.getVisNetwork(); }
@Override public Map<Id<Person>, MobsimAgent> getMobsimAgents() { return visMobsim.getAgents(); }
@Override public VisData getNonNetwokAgentSnapshots() { return visMobsim.getNonNetworkAgentSnapshots(); }
quad = new LiveServerQuadTree(this.visMobsim.getVisNetwork()); if (ConfigUtils.addOrGetModule(config, OTFVisConfigGroup.GROUP_NAME, OTFVisConfigGroup.class).isShowTeleportedAgents()) { OTFAgentsListHandler.Writer teleportationWriter; teleportationWriter = new OTFAgentsListHandler.Writer(); teleportationWriter.setSrc(this.visMobsim.getNonNetworkAgentSnapshots()); quad.addAdditionalElement(teleportationWriter);
private void doSnapshot(final double time, VisMobsim visMobsim) { if (!this.snapshotWriters.isEmpty()) { Collection<AgentSnapshotInfo> positions = new ArrayList<AgentSnapshotInfo>(); for (VisLink link : visMobsim.getVisNetwork().getVisLinks().values()) { link.getVisData().addAgentSnapshotInfo(positions); } // We do not put non-network agents in movies. // Otherwise, we would add snapshots from visMobsim.getNonNetworkAgentSnapshots() here. for (SnapshotWriter writer : this.snapshotWriters) { writer.beginSnapshot(time); for (AgentSnapshotInfo position : positions) { writer.addAgent(position); } writer.endSnapshot(); } } }