urv.conf
Class PropertiesLoader
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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