Examples of containsUserDatumKey()


Examples of edu.uci.ics.jung.graph.Vertex.containsUserDatumKey()

          result = generateNewCmpVertex(VertexID.parseID((String)label), conf);
        else
          throw new IllegalArgumentException("vertex with label "+label+" has an unsupported type");

      result.setAccept(DeterministicDirectedSparseGraph.isAccept(srcVert));
      if (srcVert.containsUserDatumKey(JUConstants.COLOUR))
        result.setColour((JUConstants)srcVert.getUserDatum(JUConstants.COLOUR));
      if (srcVert.containsUserDatumKey(JUConstants.HIGHLIGHT))
        result.setHighlight(true);
      if (srcVert.containsUserDatumKey(JUConstants.ORIGSTATE))
        result.setOrigState((VertexID)srcVert.getUserDatum(JUConstants.ORIGSTATE));
View Full Code Here

Examples of edu.uci.ics.jung.graph.Vertex.containsUserDatumKey()

          throw new IllegalArgumentException("vertex with label "+label+" has an unsupported type");

      result.setAccept(DeterministicDirectedSparseGraph.isAccept(srcVert));
      if (srcVert.containsUserDatumKey(JUConstants.COLOUR))
        result.setColour((JUConstants)srcVert.getUserDatum(JUConstants.COLOUR));
      if (srcVert.containsUserDatumKey(JUConstants.HIGHLIGHT))
        result.setHighlight(true);
      if (srcVert.containsUserDatumKey(JUConstants.ORIGSTATE))
        result.setOrigState((VertexID)srcVert.getUserDatum(JUConstants.ORIGSTATE));
      if (srcVert.containsUserDatumKey(JUConstants.DEPTH))
        result.setDepth((Integer)srcVert.getUserDatum(JUConstants.DEPTH));
View Full Code Here

Examples of edu.uci.ics.jung.graph.Vertex.containsUserDatumKey()

      result.setAccept(DeterministicDirectedSparseGraph.isAccept(srcVert));
      if (srcVert.containsUserDatumKey(JUConstants.COLOUR))
        result.setColour((JUConstants)srcVert.getUserDatum(JUConstants.COLOUR));
      if (srcVert.containsUserDatumKey(JUConstants.HIGHLIGHT))
        result.setHighlight(true);
      if (srcVert.containsUserDatumKey(JUConstants.ORIGSTATE))
        result.setOrigState((VertexID)srcVert.getUserDatum(JUConstants.ORIGSTATE));
      if (srcVert.containsUserDatumKey(JUConstants.DEPTH))
        result.setDepth((Integer)srcVert.getUserDatum(JUConstants.DEPTH));
    }
    return result;
View Full Code Here

Examples of edu.uci.ics.jung.graph.Vertex.containsUserDatumKey()

        result.setColour((JUConstants)srcVert.getUserDatum(JUConstants.COLOUR));
      if (srcVert.containsUserDatumKey(JUConstants.HIGHLIGHT))
        result.setHighlight(true);
      if (srcVert.containsUserDatumKey(JUConstants.ORIGSTATE))
        result.setOrigState((VertexID)srcVert.getUserDatum(JUConstants.ORIGSTATE));
      if (srcVert.containsUserDatumKey(JUConstants.DEPTH))
        result.setDepth((Integer)srcVert.getUserDatum(JUConstants.DEPTH));
    }
    return result;
  }
View Full Code Here

Examples of edu.uci.ics.jung.graph.Vertex.containsUserDatumKey()

        throw new IllegalArgumentException("Cannot clone vertex which is neither a CmpVertex nor Vertex, what was passed is "+vertToClone);
      if (!conf.isAllowedToCloneNonCmpVertex())
        throw new IllegalArgumentException("Cannot clone a non-CmpVertex - prohibited using configuration");
     
      Vertex srcVert = (Vertex)vertToClone;
      if (!srcVert.containsUserDatumKey(JUConstants.LABEL))
        throw new IllegalArgumentException("vertex "+srcVert+" is not labelled");
     
      // Copying the attributes associated with the vertex
      Object label = srcVert.getUserDatum(JUConstants.LABEL);
      if (label instanceof VertexID)
View Full Code Here

Examples of edu.uci.ics.jung.graph.Vertex.containsUserDatumKey()

          result = generateNewCmpVertex(VertexID.parseID((String)label), conf);
        else
          throw new IllegalArgumentException("vertex with label "+label+" has an unsupported type");

      result.setAccept(DeterministicDirectedSparseGraph.isAccept(srcVert));
      if (srcVert.containsUserDatumKey(JUConstants.COLOUR))
        result.setColour((JUConstants)srcVert.getUserDatum(JUConstants.COLOUR));
      if (srcVert.containsUserDatumKey(JUConstants.HIGHLIGHT))
        result.setHighlight(true);
      if (srcVert.containsUserDatumKey(JUConstants.ORIGSTATE))
        result.setOrigState((VertexID)srcVert.getUserDatum(JUConstants.ORIGSTATE));
View Full Code Here

Examples of edu.uci.ics.jung.graph.Vertex.containsUserDatumKey()

          throw new IllegalArgumentException("vertex with label "+label+" has an unsupported type");

      result.setAccept(DeterministicDirectedSparseGraph.isAccept(srcVert));
      if (srcVert.containsUserDatumKey(JUConstants.COLOUR))
        result.setColour((JUConstants)srcVert.getUserDatum(JUConstants.COLOUR));
      if (srcVert.containsUserDatumKey(JUConstants.HIGHLIGHT))
        result.setHighlight(true);
      if (srcVert.containsUserDatumKey(JUConstants.ORIGSTATE))
        result.setOrigState((VertexID)srcVert.getUserDatum(JUConstants.ORIGSTATE));
      if (srcVert.containsUserDatumKey(JUConstants.DEPTH))
        result.setDepth((Integer)srcVert.getUserDatum(JUConstants.DEPTH));
View Full Code Here

Examples of edu.uci.ics.jung.graph.Vertex.containsUserDatumKey()

      result.setAccept(DeterministicDirectedSparseGraph.isAccept(srcVert));
      if (srcVert.containsUserDatumKey(JUConstants.COLOUR))
        result.setColour((JUConstants)srcVert.getUserDatum(JUConstants.COLOUR));
      if (srcVert.containsUserDatumKey(JUConstants.HIGHLIGHT))
        result.setHighlight(true);
      if (srcVert.containsUserDatumKey(JUConstants.ORIGSTATE))
        result.setOrigState((VertexID)srcVert.getUserDatum(JUConstants.ORIGSTATE));
      if (srcVert.containsUserDatumKey(JUConstants.DEPTH))
        result.setDepth((Integer)srcVert.getUserDatum(JUConstants.DEPTH));
    }
    return result;
View Full Code Here

Examples of edu.uci.ics.jung.graph.Vertex.containsUserDatumKey()

        result.setColour((JUConstants)srcVert.getUserDatum(JUConstants.COLOUR));
      if (srcVert.containsUserDatumKey(JUConstants.HIGHLIGHT))
        result.setHighlight(true);
      if (srcVert.containsUserDatumKey(JUConstants.ORIGSTATE))
        result.setOrigState((VertexID)srcVert.getUserDatum(JUConstants.ORIGSTATE));
      if (srcVert.containsUserDatumKey(JUConstants.DEPTH))
        result.setDepth((Integer)srcVert.getUserDatum(JUConstants.DEPTH));
    }
    return result;
  }
View Full Code Here

Examples of edu.uci.ics.jung.graph.impl.DirectedSparseGraph.containsUserDatumKey()

                            try
                            {
                              Configuration config = Configuration.getDefaultConfiguration().copy();
                              LearnerGraphND machine = new LearnerGraphND(config);Synapse.StatechumProcess.parseStatemachine(message.elementAt(2),machine,null,true);
                              DirectedSparseGraph fsmPicture = machine.pathroutines.getGraph();
                              if (!fsmPicture.containsUserDatumKey(JUConstants.LAYOUTOPTIONS))
                                fsmPicture.addUserDatum(JUConstants.LAYOUTOPTIONS,new LayoutOptions(), UserData.SHARED);
                              int windowNumber = setOptions(message,3,fsmPicture);
                              if (windowNumber >= 0)
                                Visualiser.updateFrameWithPos(fsmPicture,windowNumber);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.