Class: Inform::Event
- Includes:
- EventInitializationMethods, PrivateEventMethods, PublicEventMethods, StoryTeller::Publisher
- Defined in:
- lib/story_teller/events.rb,
lib/story_teller/world_tree.rb
Overview
class Event
Constant Summary
Constants included from StoryTeller::Subscribers
StoryTeller::Subscribers::REGISTRY
Constants included from EventConstants
EventConstants::CallerPattern, EventConstants::EventActivityTemplate, EventConstants::EventAntecedantTemplate, EventConstants::EventCauseIdentityTemplate, EventConstants::EventNameTemplate, EventConstants::EventSourceFullTemplate, EventConstants::EventSourceTemplate
Constants included from PublicEventMethods
PublicEventMethods::RecordNotFoundErrorPattern
Instance Attribute Summary collapse
-
#activity ⇒ Object
readonly
Returns the value of attribute activity.
-
#antecedent ⇒ Object
Returns the value of attribute antecedent.
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#callstack ⇒ Object
Returns the value of attribute callstack.
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#concluded ⇒ Object
Returns the value of attribute concluded.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#future ⇒ Object
Returns the value of attribute future.
-
#identity ⇒ Object
readonly
Returns the value of attribute identity.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#semaphore ⇒ Object
readonly
Returns the value of attribute semaphore.
-
#successors ⇒ Object
Returns the value of attribute successors.
-
#terminus ⇒ Object
readonly
Returns the value of attribute terminus.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#time_delay ⇒ Object
readonly
Returns the value of attribute time_delay.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params = {}, &block) ⇒ Event
constructor
A new instance of Event.
Methods included from StoryTeller::Publisher
#muted?, #publish, #publish_except, #publish_only, #publish_system_message, #subscribers
Methods included from StoryTeller::Subscribers
#explicit_subscribers, #subscribe, #subscribers, #unsubscribe, #unsubscribe_all
Methods included from EventInitializationMethods
#defer, #generate_identity, #init_context, #init_fields, #schedule_or_defer
Methods included from PublicEventMethods
#<<, #antecedent_cancelled?, #call, #call_activity, #cancelled?, #concluded?, #contextualize, #delay, #elemental?, #finally, #get, #immediately?, #inspect, #integral?, #java_get, #mandate_cause_record_exists!, #maybe_log_nilling_warning, #now, #on_cancelled_antecedent, #on_failure, #on_success, #origin, #parse_activity, #run, #termination, #to_s, #warn_when_nilling_noun
Constructor Details
#initialize(params = {}, &block) ⇒ Event
Returns a new instance of Event.
533 534 535 536 537 538 |
# File 'lib/story_teller/events.rb', line 533 def initialize(params = {}, &block) @semaphore = Mutex.new init_fields(params, &block) init_context(@context, @antecedent, @cause) invoke(self) end |
Instance Attribute Details
#activity ⇒ Object (readonly)
Returns the value of attribute activity.
529 530 531 |
# File 'lib/story_teller/events.rb', line 529 def activity @activity end |
#antecedent ⇒ Object
Returns the value of attribute antecedent.
531 532 533 |
# File 'lib/story_teller/events.rb', line 531 def antecedent @antecedent end |
#args ⇒ Object (readonly)
Returns the value of attribute args.
529 530 531 |
# File 'lib/story_teller/events.rb', line 529 def args @args end |
#callstack ⇒ Object
Returns the value of attribute callstack.
531 532 533 |
# File 'lib/story_teller/events.rb', line 531 def callstack @callstack end |
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
529 530 531 |
# File 'lib/story_teller/events.rb', line 529 def cause @cause end |
#concluded ⇒ Object
Returns the value of attribute concluded.
531 532 533 |
# File 'lib/story_teller/events.rb', line 531 def concluded @concluded end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
529 530 531 |
# File 'lib/story_teller/events.rb', line 529 def context @context end |
#future ⇒ Object
Returns the value of attribute future.
531 532 533 |
# File 'lib/story_teller/events.rb', line 531 def future @future end |
#identity ⇒ Object (readonly)
Returns the value of attribute identity.
529 530 531 |
# File 'lib/story_teller/events.rb', line 529 def identity @identity end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
529 530 531 |
# File 'lib/story_teller/events.rb', line 529 def name @name end |
#semaphore ⇒ Object (readonly)
Returns the value of attribute semaphore.
529 530 531 |
# File 'lib/story_teller/events.rb', line 529 def semaphore @semaphore end |
#successors ⇒ Object
Returns the value of attribute successors.
531 532 533 |
# File 'lib/story_teller/events.rb', line 531 def successors @successors end |
#terminus ⇒ Object (readonly)
Returns the value of attribute terminus.
529 530 531 |
# File 'lib/story_teller/events.rb', line 529 def terminus @terminus end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
529 530 531 |
# File 'lib/story_teller/events.rb', line 529 def time @time end |
#time_delay ⇒ Object (readonly)
Returns the value of attribute time_delay.
529 530 531 |
# File 'lib/story_teller/events.rb', line 529 def time_delay @time_delay end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
529 530 531 |
# File 'lib/story_teller/events.rb', line 529 def type @type end |