Class: RemoteConsole

Inherits:
Object
  • Object
show all
Defined in:
lib/cirrocumulus/remote_console.rb

Instance Method Summary collapse

Constructor Details

#initializeRemoteConsole

Returns a new instance of RemoteConsole.



6
7
8
# File 'lib/cirrocumulus/remote_console.rb', line 6

def initialize

end

Instance Method Details

#assert(instance, data) ⇒ Object



14
15
16
# File 'lib/cirrocumulus/remote_console.rb', line 14

def assert(instance, data)
  Ontology.assert(LocalIdentifier.new(instance), Sexpistol.new.parse_string(data)[0])
end

#dump_kb(instance) ⇒ Object



22
23
24
# File 'lib/cirrocumulus/remote_console.rb', line 22

def dump_kb(instance)
  Ontology.dump_kb(LocalIdentifier.new(instance))
end

#dump_sagas(instance) ⇒ Object



26
27
28
# File 'lib/cirrocumulus/remote_console.rb', line 26

def dump_sagas(instance)
  Ontology.dump_sagas(LocalIdentifier.new(instance))
end

#list_inproc_agentsObject



10
11
12
# File 'lib/cirrocumulus/remote_console.rb', line 10

def list_inproc_agents
Ontology.list_ontology_instances()
end

#retract(instance, data) ⇒ Object



18
19
20
# File 'lib/cirrocumulus/remote_console.rb', line 18

def retract(instance, data)
  Ontology.retract(LocalIdentifier.new(instance), Sexpistol.new.parse_string(data)[0])
end