Thank you Habib M. N. Ahmad. The link is very useful.
I need codes to learn how to implement topics like "sensing radius, angle of view, Maximum Directional Area Coverage" in the Directional Sensor Network or Wireless Multimedia Sensor Network(WMSN).