urv.conf
Class PropertiesLoader

java.lang.Object
  extended by urv.conf.PropertiesLoader

public class PropertiesLoader
extends java.lang.Object

This class provide an easy access to the system properties defined in the configuration properties file

Author:
Marcel Arrufat Arias

Method Summary
 void changeFile(java.lang.String filename)
           
 void dump()
           
static java.lang.String getApplication()
           
static java.lang.String getChannelId()
           
static java.lang.String[] getEmulationTasks()
           
static java.lang.String getGraphFile()
           
static PropertiesLoader getInstance()
           
static java.lang.String getMulticastProtocol()
           
static float getSendingProb()
           
static int getUnicastPort()
           
static boolean isCommunicationLog()
           
static boolean isDynamicCredit()
           
static boolean isEmulated()
           
static boolean isReliabilityEnabled()
           
static boolean isThroughputOptimizationHopCountEnabled()
           
static boolean isThroughputOptimizationNetworkSelfKnowledgementEnabled()
           
 void saveProperties()
           
 void saveProperties(java.lang.String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getApplication

public static java.lang.String getApplication()

getChannelId

public static java.lang.String getChannelId()

getEmulationTasks

public static java.lang.String[] getEmulationTasks()

getGraphFile

public static java.lang.String getGraphFile()

getInstance

public static PropertiesLoader getInstance()

getMulticastProtocol

public static java.lang.String getMulticastProtocol()

getSendingProb

public static float getSendingProb()

getUnicastPort

public static int getUnicastPort()

isCommunicationLog

public static boolean isCommunicationLog()

isDynamicCredit

public static boolean isDynamicCredit()

isEmulated

public static boolean isEmulated()

isReliabilityEnabled

public static boolean isReliabilityEnabled()

isThroughputOptimizationHopCountEnabled

public static boolean isThroughputOptimizationHopCountEnabled()

isThroughputOptimizationNetworkSelfKnowledgementEnabled

public static boolean isThroughputOptimizationNetworkSelfKnowledgementEnabled()

changeFile

public void changeFile(java.lang.String filename)
                throws java.io.FileNotFoundException,
                       java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

dump

public void dump()

saveProperties

public void saveProperties()
                    throws java.io.IOException
Throws:
java.io.IOException

saveProperties

public void saveProperties(java.lang.String filename)
                    throws java.io.IOException
Throws:
java.io.IOException