Package org.apache.wsdm.interop.wcm.model

Examples of org.apache.wsdm.interop.wcm.model.IWs


   */
  private void updateOperationalStatus() {
    // TODO Auto-generated method stub
   
    for (Iterator iter = model.iterator(); iter.hasNext();) {
      IWs ws = (IWs) iter.next();
      if(!(ws instanceof IWc)){
        String status=ws.queryStatus();
        Color color=colorFromStatus(status);
        System.out.println(status);
        statusJPanel.setColor(ws.getName(), color);
      }
    }
    statusJPanel.invalidate();
    statusJPanel.updateUI();
  }
View Full Code Here


      RelationshipTypeImpl relationshipSample = (RelationshipTypeImpl) relationArry[0];
     
      for (int i = 0; i < relationArry.length; i++) {
        RelationshipTypeImpl relationship = (RelationshipTypeImpl) relationArry[i];
        IWs ws1=new WsImpl(relationship,notificationListenerUrl,messagesJPanel1);
        model.add(ws1);
      }
     
      // Capture the name of the defaultActive WS
      for (Iterator siWter = model.iterator(); siWter.hasNext();) {
        IWs element = (IWs) siWter.next();
        if(!(element instanceof IWc)){
          m_activeWeatherStation=element.getName();
          break;
        }
      }
     
     
View Full Code Here

       
    }

    public IWs findInModel(String name){
      for (Iterator iter = model.iterator(); iter.hasNext();) {
      IWs ws = (IWs) iter.next();
      if(name.equals(ws.getName())){
        return ws;
      }
    }
    return null;
    }
View Full Code Here

    mp = new StatusJPanel();
    frame.getContentPane().add(mp);
    frame.pack();
    frame.show();

    IWs ws1=new WsImpl(0,"Ws1",null);
    IWs ws2=new WsImpl(0,"Ws2",ws1);
    IWs ws3=new WsImpl(0,"Ws3",ws2);
    //ws1.setBackup(ws3);
    IWc wc=new WcImpl(0,"Wc",ws1);
    mp.setModel(new IWs[]{wc,ws1,ws2,ws3});   

   
View Full Code Here

TOP

Related Classes of org.apache.wsdm.interop.wcm.model.IWs

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.