Fixing wrong license
[nepi.git] / src / nepi / resources / ns3 / classes / friis_propagation_loss_model.py
index 54d2d4f..64f0f14 100644 (file)
@@ -3,9 +3,8 @@
 #    Copyright (C) 2014 INRIA
 #
 #    This program is free software: you can redistribute it and/or modify
-#    it under the terms of the GNU General Public License as published by
-#    the Free Software Foundation, either version 3 of the License, or
-#    (at your option) any later version.
+#    it under the terms of the GNU General Public License version 2 as
+#    published by the Free Software Foundation;
 #
 #    This program is distributed in the hope that it will be useful,
 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -19,7 +18,7 @@
 from nepi.execution.attribute import Attribute, Flags, Types
 from nepi.execution.trace import Trace, TraceAttr
 from nepi.execution.resource import ResourceManager, clsinit_copy, \
-        ResourceState, reschedule_delay
+        ResourceState
 from nepi.resources.ns3.ns3propagationlossmodel import NS3BasePropagationLossModel 
 
 @clsinit_copy
@@ -49,15 +48,15 @@ class NS3FriisPropagationLossModel(NS3BasePropagationLossModel):
 
         cls._register_attribute(attr_systemloss)
 
-        attr_mindistance = Attribute("MinDistance",
-            "The distance under which the propagation model refuses to give results (m)",
+        attr_minloss = Attribute("MinLoss",
+            "The minimum value (dB) of the total loss, used at short ranges. Note: ",
             type = Types.Double,
-            default = "0.5",  
+            default = "0",  
             allowed = None,
             range = None,    
             flags = Flags.Reserved | Flags.Construct)
 
-        cls._register_attribute(attr_mindistance)
+        cls._register_attribute(attr_minloss)