Class: PetriNet::Marking

Inherits:
Base
  • Object
show all
Defined in:
lib/petri_net/marking.rb

Overview

Marking

Instance Attribute Summary collapse

Attributes inherited from Base

#logger

Instance Method Summary collapse

Methods inherited from Base

#next_object_id, #reset

Constructor Details

#initialize(options = {}) {|_self| ... } ⇒ Marking

depricated

Yields:

  • (_self)

Yield Parameters:



15
16
17
18
# File 'lib/petri_net/marking.rb', line 15

def initialize(options = {}, &block)
  
	yield self unless block == nil
end

Instance Attribute Details

#descriptionObject

depricated



9
10
11
# File 'lib/petri_net/marking.rb', line 9

def description
  @description
end

#idObject

depricated



5
6
7
# File 'lib/petri_net/marking.rb', line 5

def id
  @id
end

#nameObject

depricated



7
8
9
# File 'lib/petri_net/marking.rb', line 7

def name
  @name
end

#timestepObject

depricated



11
12
13
# File 'lib/petri_net/marking.rb', line 11

def timestep
  @timestep
end

Instance Method Details

#to_sObject

Stringify this marking.



25
26
# File 'lib/petri_net/marking.rb', line 25

def to_s
end

#validateObject

Validate this marking.



21
22
# File 'lib/petri_net/marking.rb', line 21

def validate
end