Implemented toBinaryString and createFromFile in AbstractObstacle.