Package plugin.communicationdata.taggedtypes

Examples of plugin.communicationdata.taggedtypes.TaggedType


  protected synchronized boolean addPlugin(Plugin toAdd)
      throws UndefinedTaggedTypeException {
    assert toAdd != null;
    plugins[size] = toAdd;
    TaggedType in = PluginController.getInstance().getPluginIO(toAdd).get(
        "In")[0];
    switch (in) {
    case NULL:
      plugins[size] = toAdd;
      break;
    case VECTOR:
      ports[size] = PortFactory.createPort(PluginController.getInstance()
          .getPluginIO(toAdd).get("In"));
      plugins[size] = toAdd;
      size++;
      break;
    case DOUBLE:
    case INT:
    case STRING:
    case LONG:
      plugins[size] = toAdd;
      try {
        ports[size] = PortFactory.createPort(in);
      } catch (UndefinedTaggedTypeException e) {
        BackendLogger.getInstance().throwing(
            this.getClass().toString(), "addPlugin(" + toAdd + ")",
            e);
        e.printStackTrace();
        plugins[size] = null;
        return false;
      }
      size++;
      break;
    default:
      throw new UndefinedTaggedTypeException(in.toString());
    }
    if (size > capacity * .7) {
      resize();
    }
    return true;
View Full Code Here

TOP

Related Classes of plugin.communicationdata.taggedtypes.TaggedType

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.