North State Framework in C#
V3.0.0
An object-oriented framework for implementing UML state machines.
|
Represents a list of guards. More...
Public Member Functions | |
bool | isEmpty () |
Checks if the list is empty. More... | |
Static Public Member Functions | |
static NSFBoolGuards< ContextType > | operator+ (NSFBoolGuards< ContextType > list, NSFBoolGuard< ContextType > guard) |
Adds a guard to the list of guards. More... | |
static NSFBoolGuards< ContextType > | operator- (NSFBoolGuards< ContextType > list, NSFBoolGuard< ContextType > guard) |
Removes a guard from the list of guards. More... | |
Represents a list of guards.
The primary purpose of this class is to provide exception handling around guard invocations. An exception thrown by any guard will be caught, allowing the other guards to execute. Notification of guard exceptions is also available. The execute() method returns true if all guards return true. If an exception is thrown by any guard, the execute() method returns false.
bool isEmpty | ( | ) |
Checks if the list is empty.
|
static |
Adds a guard to the list of guards.
list | The guard list. |
guard | The guard to add. |
|
static |
Removes a guard from the list of guards.
list | The guard list. |
guard | The guard to remove. |