The Brain type exposes the following members.

Collapse imageConstructors

  NameDescription
Public methodBrain
Initializes a new instance of the Brain class.

Collapse imageMethods

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodReceiveEvent
Called when an event is received. If a behaviour is waiting for an event and it matches this type then the waiting thread is woken up and execution continues.
Public methodStart
Start the brain. It will only run the behaviour if ShouldRun returns true.
Public methodStop
Stop running the behaviour.
Public methodStopWaitFor
Stops waiting for an event.
Public methodToString (Inherited from Object.)
Public methodWaitFor<(Of <<'(T>)>>)()()()()
Waits indefinitely for an event of type T.
Public methodWaitFor<(Of <<'(T>)>>)(Double)
Waits for an event of type T. If timeout is reached first, returns null.
Public methodWaitFor<(Of <<'(T>)>>)(Func<(Of <<'(T, Boolean>)>>))
Waits indefinitely for an event of type T. When an event arrives, checkEventFunc is called, passing the event. If checkEventFunc returns true then the event is returned, otherwise it continues to wait.
Public methodWaitFor<(Of <<'(T>)>>)(Func<(Of <<'(T, Boolean>)>>), Double)
Waits for an event of type T that causes checkEventFunc to return true. Returns null if timeout is reached first.

Collapse imageProperties

  NameDescription
Public propertyBehaviour
Gets the behaviour for this Brain.
Public propertyWaitingForEvent
Gets a value indicating whether this Brain is waiting for event.

Collapse imageSee Also