Ejemplo n.º 1
0
 public void write(TransportWriter writer) {
   writer.attr("date", simDate).attr("consumedMillis", consumedMillis);
   if (isSimulationEnded) {
     writer.attr("isSimulationEnded", 1);
   }
   super.write(writer);
 }
Ejemplo n.º 2
0
 public void write(TransportWriter writer) {
   writer
       .attr("id", simulationID)
       .attr("startTime", startTime)
       .attr("length", simulationLength / 1000)
       .attr("secondsPerDay", secondsPerDay);
   super.write(writer);
 }
Ejemplo n.º 3
0
 /** @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);
   }
 }