A java based UAV network simulator