public SmallWorldRouter(CompositeEntity container, String name)
throws IllegalActionException, NameDuplicationException {
super(container, name);
// Create and configure the parameters.
inputChannelName = new StringParameter(this, "inputChannelName");
inputChannelName.setExpression("InputChannel");
outputChannelName = new StringParameter(this, "outputChannelName");
outputChannelName.setExpression("OutputChannel");
testChannelName = new StringParameter(this, "testChannelName");
testChannelName.setExpression("testChannel");
// Create and configure the ports.
input = new WirelessIOPort(this, "input", true, false);
input.outsideChannel.setExpression("$inputChannelName");