Classes | |
class | BuzzerState |
class | LightState |
class | Target |
Public Member Functions | |
def | __init__ (self, state=None) |
def | __repr__ (self) |
def | blue (self, value) |
def | buzzer (self, value) |
def | clear (self) |
def | code2int (self, c) |
def | green (self, value) |
def | int2code (self, i) |
def | is_valid (self, target, state) |
def | red (self, value) |
def | set_from_int (self, target, state) |
def | white (self, value) |
def | yellow (self, value) |
Public Attributes | |
state | |
This is a patlite state class
Definition at line 7 of file patlite.py.
def patlite.PatliteState.__init__ | ( | self, | |
state = None |
|||
) |
Definition at line 64 of file patlite.py.
def patlite.PatliteState.__repr__ | ( | self | ) |
Definition at line 103 of file patlite.py.
def patlite.PatliteState.blue | ( | self, | |
value | |||
) |
Definition at line 82 of file patlite.py.
def patlite.PatliteState.buzzer | ( | self, | |
value | |||
) |
Definition at line 90 of file patlite.py.
def patlite.PatliteState.clear | ( | self | ) |
Definition at line 55 of file patlite.py.
def patlite.PatliteState.code2int | ( | self, | |
c | |||
) |
Definition at line 47 of file patlite.py.
def patlite.PatliteState.green | ( | self, | |
value | |||
) |
Definition at line 78 of file patlite.py.
def patlite.PatliteState.int2code | ( | self, | |
i | |||
) |
Definition at line 39 of file patlite.py.
def patlite.PatliteState.is_valid | ( | self, | |
target, | |||
state | |||
) |
Definition at line 99 of file patlite.py.
def patlite.PatliteState.red | ( | self, | |
value | |||
) |
Definition at line 70 of file patlite.py.
def patlite.PatliteState.set_from_int | ( | self, | |
target, | |||
state | |||
) |
Definition at line 94 of file patlite.py.
def patlite.PatliteState.white | ( | self, | |
value | |||
) |
Definition at line 86 of file patlite.py.
def patlite.PatliteState.yellow | ( | self, | |
value | |||
) |
Definition at line 74 of file patlite.py.
patlite.PatliteState.state |
Definition at line 56 of file patlite.py.