Class: Scheduler::MessageTask

Inherits:
Object
  • Object
show all
Defined in:
docs/00700_Ajout_PSDK.rb

Overview

Describe a Task that send a message to a specific object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, priority, object, message) ⇒ MessageTask

Initialize a MessageTask with its name, priority, the object and the message to send

Parameters:

  • name (String)

    name that describe the task

  • priority (Integer)

    the priority of the task

  • object (Object)

    the object that receive the message

  • message (Array<Symbol, *args>)

    the message to send



288
289
# File 'docs/00700_Ajout_PSDK.rb', line 288

def initialize(name, priority, object, message)
end

Instance Attribute Details

#nameString (readonly)

Name that describe the task

Returns:



282
283
284
# File 'docs/00700_Ajout_PSDK.rb', line 282

def name
  @name
end

#priorityInteger (readonly)

Priority of the task

Returns:

  • (Integer)


279
280
281
# File 'docs/00700_Ajout_PSDK.rb', line 279

def priority
  @priority
end

Instance Method Details

#start

Send the message to the object



291
292
# File 'docs/00700_Ajout_PSDK.rb', line 291

def start
end