_distance = new Variable(this, "distance");
_distance.setExpression("Infinity");
// Hide the ports in Vergil.
SingletonParameter hide = new SingletonParameter(output, "_hide");
hide.setToken(BooleanToken.TRUE);
hide = new SingletonParameter(input, "_hide");
hide.setToken(BooleanToken.TRUE);
hide = new SingletonParameter(test, "_hide");
hide.setToken(BooleanToken.TRUE);
// Create an icon for this sensor node.
EditorIcon node_icon = new EditorIcon(this, "_icon");
// The icon has two parts: a circle and an antenna.
// Create a circle that indicates the signal radius.
_circle = new EllipseAttribute(node_icon, "_circle");
_circle.centered.setToken("true");
_circle.width.setToken("sureRange*2");
_circle.height.setToken("sureRange*2");
_circle.fillColor.setToken("{0.0, 0.0, 1.0, 0.05}");
_circle.lineColor.setToken("{0.0, 0.0, 1.0, 0.05}");
_circle2 = new EllipseAttribute(node_icon, "_circle2");
_circle2.centered.setToken("true");
_circle2.width.setToken("20");
_circle2.height.setToken("20");
_circle2.fillColor.setToken("{1.0, 1.0, 1.0, 1.0}");
_circle2.lineColor.setToken("{0.0, 0.5, 0.5, 1.0}");
node_icon.setPersistent(false);
// Hide the name of this sensor node.
hide = new SingletonParameter(this, "_hideName");
hide.setToken(BooleanToken.TRUE);
hide.setVisibility(Settable.EXPERT);
}