コード例 #1
0
  public void setInputVectorPort(String[] VectorInputPortDescriptor) {
    VectorParPort temp = new VectorParPort();
    temp.setSignal(new VectorParameter());
    String[] VectorParameterDescriptor = new String[VectorInputPortDescriptor.length - 1];
    for (int i = 0; (i < (VectorInputPortDescriptor.length - 1)); i++) {
      VectorParameterDescriptor[i] = VectorInputPortDescriptor[i + 1];
    }

    temp.getSignal().setContentFromDescriptor(VectorParameterDescriptor);
    temp.getSignal().setValid(true);
    String portName = VectorInputPortDescriptor[0];
    int TargetPortIndex = getInputVectorPortIndexFromName(portName);
    this.InputPortsVec[TargetPortIndex] = temp;
  }
コード例 #2
0
  public AddVectorIntClosure() // only the ports and URI, no parameters
      {
    setRandomURI();
    InputPortsVec = new VectorParPort[1];
    VectorParPort In1 = new VectorParPort();
    In1.setName(getInputVectorPortNames()[0]);
    In1.setType(InputVectorPortTypes[0]);
    In1.setSignal(null);
    InputPortsVec[0] = In1;

    SingleParPort Out = new SingleParPort();
    Out.setName(getOutputSinglePortNames()[0]);
    Out.setType(OutputSinglePortTypes[0]);
    Out.setSignal(null);
    OutputPorts = new SingleParPort[1];
    OutputPorts[0] = Out;
  }