Skip to content

Commit

Permalink
the definition of power was fixed (Bug# 1704)
Browse files Browse the repository at this point in the history
  • Loading branch information
syjung5 committed Mar 6, 2010
1 parent c2a905c commit 7ead1ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions KB/Ontology.cl
Original file line number Diff line number Diff line change
Expand Up @@ -605,13 +605,15 @@
(time ?time)))))

;; "the power supplied to ~a from ~a" (nlg ?b) (nlg ?agent 'at-time ?time)

(def-qexp power (power ?b ?agent :time ?time)
:symbol-base |P|
:short-name "power"
:units |W|
:new-english ((the) (allowed "instantaneous") "power" "supplied to"
(the) ?agent (preferred "from") (time ?time)))
:new-english ((the) (allowed "instantaneous") "power"
(preferred "supplied")
(and (preferred (agent ?agent))
(preferred (object ?b))
(time ?time))))

(def-qexp net-power (net-power ?b :time ?time)
:units |W|
Expand Down
2 changes: 1 addition & 1 deletion KB/work-energy.cl
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@
( (define-var (spring-constant ?spring))
(variable ?k-var (spring-constant ?spring)) )
:hint (
(bottom-out (string "Define a spring constant variable using ~A."
(bottom-out (string "Define a spring constant using ~A."
(*text-tool* eval)
))
))
Expand Down

0 comments on commit 7ead1ba

Please sign in to comment.