ppe.gui.networkspec
Class NetworkSpecGui

java.lang.Object
  extended by ppe.gui.networkspec.NetworkSpecGui

public class NetworkSpecGui
extends java.lang.Object

Gathers info and provides logic behind the NetworkSpecFrame.


Field Summary
 NetworkSpecGuiFrame networkSpecFrame
           
 NetworkSpec spec
           
 OmpiSpec specOmpi
           
 
Constructor Summary
NetworkSpecGui(Ec2Wrangler ec2w, NetworkSpec spec, OmpiSpec specOmpi)
           
 
Method Summary
 java.lang.String checkSpec()
          Checks whether the network has been fully specified.
 NetworkSpec choicesToNetworkSpec()
           
 OmpiSpec choicesToOmpiSpec()
           
 boolean fillSpec()
          fillSpec() launches the network spec gui in a separate thread.
 Choice getChoice(java.lang.String choiceType, java.lang.String label)
           
 void updateRe(java.lang.String choiceType, java.lang.String label)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

spec

public NetworkSpec spec

specOmpi

public OmpiSpec specOmpi

networkSpecFrame

public NetworkSpecGuiFrame networkSpecFrame
Constructor Detail

NetworkSpecGui

public NetworkSpecGui(Ec2Wrangler ec2w,
                      NetworkSpec spec,
                      OmpiSpec specOmpi)
               throws java.io.FileNotFoundException,
                      java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException
Method Detail

fillSpec

public boolean fillSpec()
fillSpec() launches the network spec gui in a separate thread. It then sleeps until params have been entered.

Returns:

checkSpec

public java.lang.String checkSpec()
Checks whether the network has been fully specified.

Returns:
null if the network is fully specified, or a message indicating what's missing.

choicesToNetworkSpec

public NetworkSpec choicesToNetworkSpec()

choicesToOmpiSpec

public OmpiSpec choicesToOmpiSpec()

getChoice

public Choice getChoice(java.lang.String choiceType,
                        java.lang.String label)

updateRe

public void updateRe(java.lang.String choiceType,
                     java.lang.String label)