Sha256: 1472b1cee45d46458eddd13db45b9e4706fa403e3b5619bb656af1bdfd72ca19

Contents?: true

Size: 395 Bytes

Versions: 6

Compression:

Stored size: 395 Bytes

Contents

# -*- coding: utf-8 -*-
require 'tengine/job'

# ジョブネットの始端を表すVertex。特に状態は持たない。
class Tengine::Job::Start < Tengine::Job::Vertex

  # https://cacoo.com/diagrams/hdLgrzYsTBBpV3Wj#D26C1
  def transmit(signal)
    activate(signal)
  end

  def activate(signal)
    signal.leave(self)
  end

  def reset(signal)
    signal.leave(self, :reset)
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tengine_job-1.1.0 lib/tengine/job/start.rb
tengine_job-0.6.13 lib/tengine/job/start.rb
tengine_job-0.6.12 lib/tengine/job/start.rb
tengine_job-0.6.11 lib/tengine/job/start.rb
tengine_job-0.6.10 lib/tengine/job/start.rb
tengine_job-0.6.9 lib/tengine/job/start.rb