home *** CD-ROM | disk | FTP | other *** search
/ Thomson (Residential) / TGSTPv7203.iso / mac / HIW / xml / mod_upgrade_configinterface.xml < prev    next >
Extensible Markup Language  |  2008-02-11  |  2KB  |  61 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE fsm SYSTEM "fsm.dtd">
  3. <!-- 
  4.     Configures the interface to which the device is connected with
  5.     a static IP address, and searches for the device over MDAP.
  6.     If the interface was already staticly configured, it remains
  7.     the same.
  8.  
  9.     Application properties:
  10.     - device: The device.
  11.  
  12.     Output properties:
  13.     - oldInterface: The interface as it was before reconfiguring.
  14.  
  15.   Exit events:
  16.   - finished: Device was found over the static interface.
  17.   - notFound: Device not found.
  18.  
  19. -->
  20.  
  21. <fsm>
  22.     <states>
  23.         <state type="compare" name="checkDhcpEnabled" weight="1">
  24.         <property key="input1" value="true"/>
  25.         <property key="comparisonType" value="equal"/>
  26.         </state>
  27.         <state type="configInterface" name="configInterface" weight="1">
  28.         <property key="enableDhcp" value="false"/>
  29.         </state>
  30.         <state type="ipConfig" name="ipConfig" weight="5"/>
  31.     <state type="actionDiscoverDevice" name="discover" weight="10">
  32.       <property key="timeout" value="20000"/>
  33.     </state>        
  34.     </states>
  35.     <events>
  36.     <event name="finished"/>
  37.     <event name="notFound"/>
  38.   </events>
  39.     
  40.   <transitions>
  41.         <transition startstate="checkDhcpEnabled">
  42.             <propertymap target="fsm.oldInterface" function="property($app.device,'lanInterface')"/>    
  43.             <propertymap target="input2" function="property($fsm.oldInterface, 'dhcpEnabled')"/>    
  44.         </transition>
  45.         <transition fromstate="checkDhcpEnabled" tostate="configInterface" event="true">
  46.             <propertymap target="interface" function="$fsm.oldInterface"/>    
  47.         </transition>
  48.         <transition fromstate="configInterface" tostate="ipConfig" event="finished">
  49.             <propertymap target="newInterface" function="$interface"/>    
  50.         </transition>
  51.         <transition fromstate="ipConfig" tostate="discover" event="interfaceUpdated|needReboot">
  52.             <propertymap target="device" function="$app.device"/>    
  53.         </transition>
  54.         <transition fromstate="checkDhcpEnabled" tostate="discover" event="false">
  55.             <propertymap target="device" function="$app.device"/>    
  56.         </transition>
  57.         <transition fromstate="discover" toexit="finished" event="finished"/>
  58.         <transition fromstate="discover" toexit="notFound" event="failed"/>
  59.     </transitions>
  60. </fsm>
  61.