package net.commotionwireless.olsrinfo.datatypes;

import java.util.Collection;

/**
 * A class representing the complete dump of information from <tt>olsrd</tt>'s
 * jsoninfo plugin.
 * 
 * Written as part of the Commotion Wireless project
 * 
 * @author Hans-Christoph Steiner <hans@eds.org>
 * @see <a href="https://code.commotionwireless.net/projects/commotion/wiki/OLSR_Configuration_and_Management">OLSR Configuration and Management</a>
 */
public class OlsrDataDump {
	public Config config;
	public Collection<Gateway> gateways;
	public Collection<HNA> hna;
	public Collection<Interface> interfaces;
	public Collection<Link> links;
	public Collection<MID> mid;
	public Collection<Neighbor> neighbors;
	public Collection<Node> topology;
	public Collection<Plugin> plugins;
	public Collection<Route> routes;
	public int systemTime;
	public int timeSinceStartup;
	public String uuid;

	String raw;

	public void setRaw(String s) {
		raw = s;
	}
	
	public String toString(){
		return raw;
	}
}

@@ -828,16 +828,20 @@
 stemTime
+ = 0
 ;%0A%09publi
@@ -862,16 +862,20 @@
 eStartup
+ = 0
 ;%0A%09publi
@@ -887,16 +887,21 @@
 ing uuid
+ = %22%22
 ;%0A%0A%09Stri
@@ -906,16 +906,21 @@
 ring raw
+ = %22%22
 ;%0A%0A%09publ

set blank/0 default values in OlsrInfoDump for systemTime, timeSinceStartup, uuid, and the raw dump