Eclipse CD5405 Manuel d'utilisateur Page 23

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 23
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 22
Step: Read S
(ReadSHandler) Assigning SensorData object: Process COMPLETED successfully.
Now, you should try extending this process by providing the agent code for the postrequisite
and the other leaf steps. The structure for the agent should be similar to what you already
have. Here is a description of what should happen for the other steps:
Check S: Complete if the sensor data value is between -60 and 60. Throw
OutOfRangeException otherwise.
Adjust S: Change the sensor value to (1.0936 * input sensor value) + 0.5505
Calc Q: Calculate the DischargeData as
If sensor value == 0, set discharge value to 0
If sensor value <= 25.4, set discharge value to 0.02391 * sensor value
2.5
Otherwise, set discharge value to 77.74 + 7.0001 * (sensor value - 25.4)
1.5
Output Q: Write the discharge data to a file whose name is provided to the agent as a 2
nd
parameter, after the input file name.
Congratualtions! You have written and executed a Little-JIL process!
13.For More Information
There is much more that one could learn about Little-JIL. The most complete reference is
the Little-JIL Language manual, available at http://laser.cs.umass.edu/techreports/
06-51.pdf. It is not necessary to understand everything in there, especially initially. The
features of Little-JIL that did not get used in the tutorial but that you will most likely depend
on the most are the various step kinds and the different types of continuation semantics
associated with exception handlers. Take a look at those so that you have a sense of what
is available. Mostly you will learn things as you need them.
You should also be aware of the Little-JIL wiki, which I have referred to a few times in this
tutorial. It is far from complete, but it may have useful tips and is probably something we
should contribute to as we gain experience with Little-JIL. It is available at https://
collab.cs.umass.edu/groups/laser_library/wiki/debb5/Little-JIL_Tutorial.html.
Vue de la page 22
1 2 ... 18 19 20 21 22 23

Commentaires sur ces manuels

Pas de commentaire