This section shows how to create a network element using the JViews TGO API and add it to a data source.
All you have to do is create a new network element using the class IltNetworkElement and add it to a data source, as shown below.
How to Create a Network Element Through the API
IltNetworkElement ne = new IltNetworkElement("NE",
IltNetworkElement.Type.Digiphone, new IltOSIObjectState());
ne.setAttributeValue(IltObject.PositionAttribute, new IlpPoint(100,100));
IlpDataSource dataSource = new IltDefaultDataSource();
dataSource.addObject(ne);