@Override public String toString(){
  Vector<Capability> sorted;
  StringBuffer result;
  result=new StringBuffer();
  sorted=new Vector<Capability>(m_Capabilities);
  Collections.sort(sorted);
  result.append("Capabilities: " + sorted.toString() + "\n");
  sorted=new Vector<Capability>(m_Dependencies);
  Collections.sort(sorted);
  result.append("Dependencies: " + sorted.toString() + "\n");
  result.append("min # Instance: " + getMinimumNumberInstances() + "\n");
  return result.toString();
}

@ Override public String toString ( ) { Vector < Capability > sorted ; StringBuffer result ; result = new StringBuffer ( ) ; sorted = new Vector < Capability > ( m_Capabilities ) ; Collections . sort ( sorted ) ; result . append ( "Capabilities: " + sorted . toString ( ) + "\n" ) ; sorted = new Vector < Capability > ( m_Dependencies ) ; Collections . sort ( sorted ) ; result . append ( "Dependencies: " + sorted . toString ( ) + "\n" ) ; result . append ( "min # Instance: " + getMinimumNumberInstances ( ) + "\n" ) ; return result . toString ( ) ; }
returns a string representation of the capabilities
