Example Frame [From the How Things Work project at Stanford, Thomas Gruber et al. http://www-ksl.stanford.edu/htw/htw-demos.html]


(defEntity Thermal-component 
  :documentation "a thermodynamic device" 
  :subclass-of (Thermal-system) 
  :quantities  
  ((efficiency :dimension dimensionless 
               :documentation "the efficiency of ..."
               :the-*-the-object ("efficiency" "of") 
               :abbreviation "e") 
   (capacity   :documentation "the capacity of ..."
               :the-*-the-object ("capacity" "of") 
               :abbreviation "c") 
   (connected-to-external-heat-source-p  
     :range-class boolean 
     :non-numeric t 
     :documentation "the attribute indicating ..."
     :value-names ((true "being heated")
                   (false "not being heated")) 
     :the-*-the-object ("predicate indicating ..." "of") 
   )) 
  :operating-modes 
  (thermal-component-op-mode cycle-heat-input) 
  ) 

Contents    Page-10    Prev    Next    Page+10    Index