private void paintRoadblock(java.awt.Graphics2D g2,Roadblock block){
  if (block.inEnvMap || block.inAgentMap) {
    int x=(int)(0.2 * x(block.pos1) + 0.8 * x(block.pos2) - 4);
    int y=(int)(0.2 * y(block.pos1) + 0.8 * y(block.pos2) - 4);
    if (!block.inAgentMap)     g2.setColor(Color.blue);
 else     if (!block.inEnvMap)     g2.setColor(Color.red);
 else     g2.setColor(Color.lightGray);
    g2.fillRect(x,y,9,9);
  }
}

private void paintRoadblock ( java . awt . Graphics2D g2 , Roadblock block ) { if ( block . inEnvMap || block . inAgentMap ) { int x = ( int ) ( 0.2 * x ( block . pos1 ) + 0.8 * x ( block . pos2 ) - 4 ) ; int y = ( int ) ( 0.2 * y ( block . pos1 ) + 0.8 * y ( block . pos2 ) - 4 ) ; if ( ! block . inAgentMap ) g2 . setColor ( Color . blue ) ; else if ( ! block . inEnvMap ) g2 . setColor ( Color . red ) ; else g2 . setColor ( Color . lightGray ) ; g2 . fillRect ( x , y , 9 , 9 ) ; } }
blocked roads are represented by filled rectangles . blue denotes , the agent doesn ' t know it , red denotes , the road is no blocked , but the agent thinks so .
