Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
PositiveFraction Class Reference
Inheritance diagram for PositiveFraction:
Argument

Public Member Functions

def checkValidity
 
- Public Member Functions inherited from Argument
def __init__
 
def set
 
def isValid
 
def checkValidity
 
def warn
 
def printwarnings
 

Data Fields

 value
 
- Data Fields inherited from Argument
 warnings
 
 value
 
 nextarg
 

Static Public Attributes

string NAME = "PositiveFraction"
 
- Static Public Attributes inherited from Argument
string NAME = "Argument"
 

Detailed Description

Definition at line 134 of file verify_missions.py.

Member Function Documentation

def checkValidity (   self)

Definition at line 138 of file verify_missions.py.

References SaveVariableCondition.value, _Stop.value, Argument.value, ErrorDuringImport.value, Boolean.value, DateTime.value, MiniFieldStorage.value, SetSaveVariable.value, Morsel.value, and GUIRadioButton.value.

139  def checkValidity(self):
140  if not isinstance(self.value,float) or self.value < 0 or self.value > 1:
141  if isinstance(self.value,int) and (self.value == 0 or self.value == 1):
142  return True
143  self.warn("Value %s is not a positive fraction"%str(self.value))
144  return False
145  return True

Field Documentation

string NAME = "PositiveFraction"
static

Definition at line 136 of file verify_missions.py.

value

Definition at line 140 of file verify_missions.py.


The documentation for this class was generated from the following file: