/[freeride]/freeride/freebase/plugin.rb
ViewVC logotype

Diff of /freeride/freebase/plugin.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by ljulliar, Fri Jun 28 20:08:46 2002 UTC revision 1.8 by ljulliar, Mon Jul 1 11:57:44 2002 UTC
# Line 175  module FreeBASE Line 175  module FreeBASE
175      #      #
176      def transition(state)      def transition(state)
177        currentState = @base_slot["state"].data        currentState = @base_slot["state"].data
178          self["log/info"] << "State transition: #{currentState} -> #{state}"
179        unless LEGAL_TRANSITIONS[currentState].include?(state)        unless LEGAL_TRANSITIONS[currentState].include?(state)
180          raise "Cannot transition to #{state} from #{currentState}"          raise "Cannot transition to #{state} from #{currentState}"
181        end        end
182        @base_slot["state"].data = state        @base_slot["state"].data = state
       self["log/info"] << "State transition: #{currentState} -> #{state}"  
183      end      end
184            
185      ##      ##

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26