lib/fast-tcpn/hash_marking.rb
def add(objects)
      unless objects.kind_of? Array
        objects = [ objects ]
      end
      objects.each do |object|
        value = object
        if object.instance_of? Hash
          value = object[:val]
        end
        add_token prepare_token(value)
      end
    end
def add(objects)
      unless objects.kind_of? Array
        objects = [ objects ]
      end
      objects.each do |object|
        value = object
        if object.instance_of? Hash
          value = object[:val]
        end
        add_token prepare_token(value)
      end
    end
Creates new token of the +object+ and adds it to the marking.
 Objects added to the marking are deep-cloned, so you can use them
 without fear to interfere with TCPN simulation. But have it in mind!
 If you put a large object with a lot of references in the marking,
 it will significanntly slow down simulation and increase memory usage.