What is the use of Floating barrier in river

 What is the use of Floating barrier in river?