Class: LogicalConstruct::ResolutionServer::Models::FullPlansList

Inherits:
RoadForest::RDFModel
  • Object
show all
Defined in:
lib/logical-construct/target/resolution-server.rb

Direct Known Subclasses

UnresolvedPlansList

Instance Method Summary collapse

Instance Method Details

#add_child(graph) ⇒ Object



97
98
99
# File 'lib/logical-construct/target/resolution-server.rb', line 97

def add_child(graph)
  services.plan_records.add(graph.first(:lc, "name"), graph.first(:lc, "digest"))
end

#exists?Boolean

Returns:

  • (Boolean)


90
91
92
# File 'lib/logical-construct/target/resolution-server.rb', line 90

def exists?
  true
end

#fill_graph(graph) ⇒ Object



105
106
107
108
109
110
111
# File 'lib/logical-construct/target/resolution-server.rb', line 105

def fill_graph(graph)
  graph.add_list(:lc, "plans") do |list|
    plan_records.each do |record|
      list << path_for(:plan, '*' => record.name)
    end
  end
end

#plan_recordsObject



101
102
103
# File 'lib/logical-construct/target/resolution-server.rb', line 101

def plan_records
  services.plan_records
end

#update(graph) ⇒ Object



94
95
# File 'lib/logical-construct/target/resolution-server.rb', line 94

def update(graph)
end