class edge_label¶
Denotes the conditions under which control can flow along an edge: a component of a ( point , edge_label ).
edge_label Members¶
| Constructor | __init__() |
| Methods | __cmp__(), __eq__(), __ge__(), __gt__(), __hash__(), __le__(), __lt__(), __ne__(), __repr__(), __str__(), name() |
edge_label Details¶
-
class
cs.edge_label¶ Denotes the conditions under which control can flow along an edge: a component of a (
point,edge_label).-
__init__(val)¶ Constructor for a boolean
edge_label.Parameters: val (bool) – Set to Truefor the “T” edge label,Falsefor the “F” edge label.>>> edge_label(True) <cs.edge_label T>
-
__cmp__(other)¶ Comparison function for
edge_label.Parameters: other ( edge_label) – Theedge_labelobject to compare against.Return type: int Returns: An integer N such that: - N==0 if the two objects compare equal
- N<0 if
self< other - N>0 if
self> other
>>> edge_label(True).__cmp__(edge_label(False)) -1
-
__eq__(b)¶ Equality operator for
edge_label.Parameters: b ( edge_label) – Theedge_labelto compare against.Return type: bool Returns: Trueifselfandbcompare equal,Falseotherwise.>>> edge_label(True) == edge_label(False) False
-
__ge__(b)¶ Greater-than-or-equal operator for
edge_label.Parameters: b ( edge_label) – Theedge_labelto compare against.Return type: bool Returns: Trueifself>=b,Falseotherwise.>>> edge_label(True) >= edge_label(False) False
-
__gt__(b)¶ Greater-than operator for
edge_label.Parameters: b ( edge_label) – Theedge_labelto compare against.Return type: bool Returns: Trueifself>b,Falseotherwise.>>> edge_label(True) > edge_label(False) False
-
__hash__()¶ Get a hash value for a
edge_label.Return type: int >>> hash(edge_label(True)) 4294967294
-
__le__(b)¶ Less-than-or-equal operator for
edge_label.Parameters: b ( edge_label) – Theedge_labelto compare against.Return type: bool Returns: Trueifself<=b,Falseotherwise.>>> edge_label(True) <= edge_label(False) True
-
__lt__(b)¶ Less-than operator for
edge_label.Parameters: b ( edge_label) – Theedge_labelto compare against.Return type: bool Returns: Trueifself<b,Falseotherwise.>>> edge_label(True) < edge_label(False) True
-
__ne__(b)¶ Inequality operator for
edge_label.Parameters: b ( edge_label) – Theedge_labelto compare against.Return type: bool Returns: Falseifselfandbcompare equal,Trueotherwise.>>> edge_label(True) != edge_label(False) True
-
__repr__()¶ Get a representation of a
edge_labelobject that includes information useful for debugging.Return type: str Returns: The string representation. >>> repr(edge_label(True)) '<cs.edge_label T>'
-
__str__()¶ Get a simple string representation of a
edge_labelobject.Return type: str Returns: The string representation. >>> str(edge_label(True)) 'T'
-
name()¶ Get the string representation of an
edge_label.Return type: str Returns: The string representation. >>> edge_label(True).name() 'T'
-