IltNetworkElement paris = new IltNetworkElement("Paris",
IltNetworkElement.Type.NE, null);
paris.setFunction(IltNetworkElement.Function.SwitchCrossConnect);
paris.setPosition(new IlpPoint(120, 350));
IltNetworkElement berlin = new IltNetworkElement("Berlin",
IltNetworkElement.Type.NE, null);
berlin.setFunction(IltNetworkElement.Function.TransportCrossConnect);
berlin.setFamily(IltNetworkElement.Family.OC12);
berlin.setPosition(new IlpPoint(250, 350));
IltLink link1 = new IltLink(new IltSONETObjectState(IltSONET.State.Active),
"1", null);
IltLink link2 = new IltLink(new IltSONETObjectState(IltSONET.State.Active),
"2", null);
IltLinkSet linkSet = new IltLinkSet();
List objects = new ArrayList();
objects.add(paris);
objects.add(berlin);
objects.add(link1);
objects.add(link2);
objects.add(linkSet);
dataSource.setLink(link1.getIdentifier(), paris.getIdentifier(),
berlin.getIdentifier());
dataSource.setLink(link2.getIdentifier(), paris.getIdentifier(),
berlin.getIdentifier());
dataSource.setLink(linkSet.getIdentifier(), paris.getIdentifier(),
berlin.getIdentifier());
dataSource.setParent(link1.getIdentifier(), linkSet.getIdentifier());
dataSource.setParent(link2.getIdentifier(), linkSet.getIdentifier());
dataSource.addObjects(objects);
The result looks like this: