Panda3D
Loading...
Searching...
No Matches
PackageInfo.InstallStep Class Reference

Public Member Functions

 __init__ (self, func, bytes, factor, stepType)
 
 func (self)
 
 getEffort (self)
 
 getProgress (self)
 

Public Attributes

int bytesDone = 0
 
 bytesFactor = factor
 
int bytesNeeded = bytes
 
 pStatCol = PStatCollector(':App:PackageInstaller:%s' % (stepType))
 
 stepType = stepType
 

Detailed Description

 This class is one step of the installPlan list; it
represents a single atomic piece of the installation step, and
the relative effort of that piece.  When the plan is executed,
it will call the saved function pointer here. 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
func,
bytes,
factor,
stepType )

Member Function Documentation

◆ func()

func ( self)
 self.__funcPtr(self) will return a generator of
tokens.  This function defines a new generator that yields
each of those tokens, but wraps each call into the nested
generator within a pair of start/stop collector calls. 

◆ getEffort()

getEffort ( self)
 Returns the relative amount of effort of this step. 

◆ getProgress()

getProgress ( self)
 Returns the progress of this step, in the range
0..1. 

Member Data Documentation

◆ bytesDone

bytesDone = 0

◆ bytesFactor

bytesFactor = factor

◆ bytesNeeded

bytesNeeded = bytes

◆ pStatCol

pStatCol = PStatCollector(':App:PackageInstaller:%s' % (stepType))

◆ stepType

stepType = stepType