Beispiel #1
0
 public void write(TransportWriter writer) {
   writer.attr("date", simDate).attr("consumedMillis", consumedMillis);
   if (isSimulationEnded) {
     writer.attr("isSimulationEnded", 1);
   }
   super.write(writer);
 }
Beispiel #2
0
 public void write(TransportWriter writer) {
   writer
       .attr("id", simulationID)
       .attr("startTime", startTime)
       .attr("length", simulationLength / 1000)
       .attr("secondsPerDay", secondsPerDay);
   super.write(writer);
 }
 /** @see se.sics.isl.transport.Transportable#write(se.sics.isl.transport.TransportWriter) */
 @Override
 public void write(TransportWriter writer) {
   if (publisherName != null) {
     writer.attr(PUBLISHER_NAME_KEY, publisherName);
   }
 }