public void BrokerRouterConstruct() { // attributes double available = 60; // available time for broker double startTime = 0.5; double bandwidth = 10; // bandwidth for the network or router // Ceate an unique component Broker = new ServiceBroker("Broker", available, startTime); Router = new ServiceRouter("Router Link", bandwidth); Broker.setBackgroundColor(Color.YELLOW); Router.setBackgroundColor(Color.PINK); BrokerList.add(Broker); RouterList.add(Router); }