class Vizkit::ConnectorProperty

Public Class Methods

new(task,signature,options) click to toggle source
Calls superclass method Vizkit::ConnectorObject.new
# File lib/vizkit/connector_objects.rb, line 381
def initialize(task,signature,options)
    super()
    @property = task.property(signature)
end

Public Instance Methods

argument_types() click to toggle source
# File lib/vizkit/connector_objects.rb, line 400
def argument_types
end
argument_types=(*value) click to toggle source
# File lib/vizkit/connector_objects.rb, line 397
def argument_types=(*value)
end
argument_types?(*value) click to toggle source
# File lib/vizkit/connector_objects.rb, line 394
def argument_types?(*value)
end
arity=(value) click to toggle source
# File lib/vizkit/connector_objects.rb, line 386
def arity=(value)
    raise ArgumentError "only an arity of one is supported for ports" unless value == 1
end
arity?(value) click to toggle source
# File lib/vizkit/connector_objects.rb, line 390
def arity?(value)
    value == 1
end
name() click to toggle source
# File lib/vizkit/connector_objects.rb, line 403
def name
    @property.name
end
on_data(options,&block) click to toggle source
# File lib/vizkit/connector_objects.rb, line 417
def on_data(options,&block)
    @property.on_change options, &block
end
read(options,*args,&block) click to toggle source
# File lib/vizkit/connector_objects.rb, line 407
def read(options,*args,&block)
    raise ArgumentError,"wrong number of arguments" unless args.size == 0
    @property.read options,&block
end
write(options,*args,&block) click to toggle source
# File lib/vizkit/connector_objects.rb, line 412
def write(options,*args,&block)
    raise ArgumentError,"got #{args.size} number of arguments. Ports only support one argument for writing" unless args.size == 1
    @property.write args.first,&block
end