Package virtualization :: Module state :: Class State
[hide private]
[frames] | no frames]

Class State

source code

This class represents the state of a virtual instance. It provides abstraction to categorize the state into running, stopped, paused, or crashed.

Instance Methods [hide private]
 
__init__(self, state_type)
Create a new state.
source code
 
get_state_type(self)
Returns the state type used to create this instance.
source code
 
is_running(self)
Returns true if this object represents a running state.
source code
 
is_paused(self)
Returns true if this object represents a paused instance.
source code
 
is_stopped(self)
Returns true if this object represents a stopped instance.
source code
 
is_crashed(self)
Returns true if this object represents a crashed instance.
source code
Method Details [hide private]

__init__(self, state_type)
(Constructor)

source code 

Create a new state. If state_type is None, this state is assumed to be stopped. If state_type is not None, it must be a StateType type.