|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ntnu.item.router.utilities.GuiXmlWriter
public class GuiXmlWriter
This is a class with functionality for informing the user about the current network situation. When this class is called, it will write certain parameters to file. This file will be read by the apache server that hosts the Web UI.
Constructor Summary | |
---|---|
GuiXmlWriter()
|
Method Summary | |
---|---|
private void |
addAvaliableVideoBitrates(SilverlightMeasurement latestMeasurement,
org.w3c.dom.Document document,
org.w3c.dom.Element sessionElem)
A method for adding all the avaliable video bit rates to the sessionElement. |
private void |
addBitRateStatistics(ServiceSession serviceSession,
org.w3c.dom.Document document,
org.w3c.dom.Element sessionElem)
Method for adding bit rate statistics to the sessionElem |
private void |
addChildElement(org.w3c.dom.Document document,
org.w3c.dom.Element parent,
java.lang.String name,
java.lang.String value)
Method that makes and adds a child element to a already existing parent. |
private void |
addServiceSession(ServiceSession serviceSession,
org.w3c.dom.Document document,
org.w3c.dom.Element root)
Method for adding a serviceSession to the root element |
private java.lang.String |
getHumanReadableTimeStamp(SilverlightMeasurement latestMeasurement)
This method extracts a human readable time stamp on the form hh:mm:ss from a SilverlightMeasurement
TODO Remove this method if it will never be used, also remove commented
line where this method is used earlier in the code |
void |
writeXml(ServiceSessionBank serviceSessionBank)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GuiXmlWriter()
Method Detail |
---|
public void writeXml(ServiceSessionBank serviceSessionBank)
private void addServiceSession(ServiceSession serviceSession, org.w3c.dom.Document document, org.w3c.dom.Element root)
serviceSession
- the session to adddocument
- for element creationroot
- to append the element toprivate void addAvaliableVideoBitrates(SilverlightMeasurement latestMeasurement, org.w3c.dom.Document document, org.w3c.dom.Element sessionElem)
latestMeasurement
- to retrieve list of bit ratesdocument
- for element creationsessionElem
- where the bit rates should be addedprivate void addBitRateStatistics(ServiceSession serviceSession, org.w3c.dom.Document document, org.w3c.dom.Element sessionElem)
serviceSession
- to retrieve the measurements fromdocument
- for element creationsessionElem
- where the statistics are to be addedprivate void addChildElement(org.w3c.dom.Document document, org.w3c.dom.Element parent, java.lang.String name, java.lang.String value)
document
- for creation of elementsparent
- parent nodename
- the name of the new childvalue
- value of the child elementsprivate java.lang.String getHumanReadableTimeStamp(SilverlightMeasurement latestMeasurement)
SilverlightMeasurement
TODO Remove this method if it will never be used, also remove commented
line where this method is used earlier in the code
latestMeasurement
- to read the time stamp from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |