Examples of LinkType


Examples of com.github.maven_nar.cpptasks.compiler.LinkType

    public void testGetLinkerDarwinPlugin() {
        System.setProperty("os.name", "Mac OS X");
        GccLinker linker = GccLinker.getInstance();
        OutputTypeEnum outputType = new OutputTypeEnum();
        outputType.setValue("plugin");
        LinkType linkType = new LinkType();
        linkType.setOutputType(outputType);
        Linker pluginLinker = linker.getLinker(linkType);
        assertEquals("libfoo.bundle", pluginLinker.getOutputFileNames("foo", null)[0]);
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.LinkType

    public void testGetLinkerDarwinShared() {
        System.setProperty("os.name", "Mac OS X");
        GccLinker linker = GccLinker.getInstance();
        OutputTypeEnum outputType = new OutputTypeEnum();
        outputType.setValue("shared");
        LinkType linkType = new LinkType();
        linkType.setOutputType(outputType);
        Linker sharedLinker = linker.getLinker(linkType);
        assertEquals("libfoo.dylib", sharedLinker.getOutputFileNames("foo", null)[0]);
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.LinkType

    public void testGetLinkerNonDarwinPlugin() {
        System.setProperty("os.name", "Microsoft Windows");
        GccLinker linker = GccLinker.getInstance();
        OutputTypeEnum outputType = new OutputTypeEnum();
        outputType.setValue("plugin");
        LinkType linkType = new LinkType();
        linkType.setOutputType(outputType);
        Linker pluginLinker = linker.getLinker(linkType);
        assertEquals("libfoo.so", pluginLinker.getOutputFileNames("foo", null)[0]);
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.LinkType

    public void testGetLinkerNonDarwinShared() {
        System.setProperty("os.name", "Microsoft Windows");
        GccLinker linker = GccLinker.getInstance();
        OutputTypeEnum outputType = new OutputTypeEnum();
        outputType.setValue("shared");
        LinkType linkType = new LinkType();
        linkType.setOutputType(outputType);
        Linker sharedLinker = linker.getLinker(linkType);
        assertEquals("libfoo.so", sharedLinker.getOutputFileNames("foo", null)[0]);
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.LinkType

     */
    public void testAddImpliedArgsDarwinPlugin() {
        System.setProperty("os.name", "Mac OS X");
        AbstractLdLinker linker = getLinker();
        Vector args = new Vector();
        LinkType pluginType = new LinkType();
        OutputTypeEnum pluginOutType = new OutputTypeEnum();
        pluginOutType.setValue("plugin");
        pluginType.setOutputType(pluginOutType);
        linker.addImpliedArgs(null, false, pluginType, args);
        assertEquals(1, args.size());
        assertEquals("-bundle", args.elementAt(0));
    }
View Full Code Here

Examples of com.microsoft.windowsazure.services.media.implementation.atom.LinkType

     * @return The link if found, null if not.
     */
    public <U extends ODataEntity<?>> LinkInfo<U> getLink(String rel) {
        for (Object child : entry.getEntryChildren()) {

            LinkType link = linkFromChild(child);
            if (link != null && link.getRel().equals(rel)) {
                return new LinkInfo<U>(link);
            }
        }
        return null;
    }
View Full Code Here

Examples of edu.isi.karma.rep.alignment.LinkType

 
  private static DefaultLink readLink(JsonReader reader, Double[] weight) throws IOException {
   
    String id = null;
    Label label = null;
    LinkType type = null;
    String hNodeId = null;
    ObjectPropertyType objectPropertyType = null;
    String specializedLinkId = null;
    LinkStatus status = null;
    LinkKeyInfo keyInfo = null;
    Set<String> modelIds = null;
    if (weight == null) weight = new Double[1];

    reader.beginObject();
      while (reader.hasNext()) {
        String key = reader.nextName();
      if (key.equals("id") && reader.peek() != JsonToken.NULL) {
        id = reader.nextString();
      } else if (key.equals("label") && reader.peek() != JsonToken.NULL) {
        label = readLabel(reader);
      } else if (key.equals("type") && reader.peek() != JsonToken.NULL) {
        type = LinkType.valueOf(reader.nextString());
      } else if (key.equals("hNodeId") && reader.peek() != JsonToken.NULL) {
        hNodeId = reader.nextString();
      } else if (key.equals("objectPropertyType") && reader.peek() != JsonToken.NULL) {
        objectPropertyType = ObjectPropertyType.valueOf(reader.nextString());
      } else if (key.equals("specializedLinkId") && reader.peek() != JsonToken.NULL) {
        specializedLinkId = reader.nextString();
      } else if (key.equals("status") && reader.peek() != JsonToken.NULL) {
        status = LinkStatus.valueOf(reader.nextString());
      } else if (key.equals("keyInfo") && reader.peek() != JsonToken.NULL) {
        keyInfo = LinkKeyInfo.valueOf(reader.nextString());
      } else if (key.equals("modelIds") && reader.peek() != JsonToken.NULL) {
        modelIds = readModelIds(reader);
      } else if (key.equals("weight") && reader.peek() != JsonToken.NULL) {
        weight[0] = new Double(reader.nextDouble());
      } else {
        reader.skipValue();
      }
    }
      reader.endObject();
     
      DefaultLink l = null;
      if (type == LinkType.ClassInstanceLink) {
        l = new ClassInstanceLink(id, keyInfo);
      } else if (type == LinkType.ColumnSubClassLink) {
        l = new ColumnSubClassLink(id);
      } else if (type == LinkType.DataPropertyLink) {
        l = new DataPropertyLink(id, label);
      } else if (type == LinkType.DataPropertyOfColumnLink) {
        l = new DataPropertyOfColumnLink(id, hNodeId, specializedLinkId);
      } else if (type == LinkType.ObjectPropertyLink) {
        l = new ObjectPropertyLink(id, label, objectPropertyType);
      } else if (type == LinkType.ObjectPropertySpecializationLink) {
        l = new ObjectPropertySpecializationLink(hNodeId, specializedLinkId);
      } else if (type == LinkType.SubClassLink) {
        l = new SubClassLink(id);
      } else if (type == LinkType.CompactObjectPropertyLink) {
        l = new CompactObjectPropertyLink(id, objectPropertyType);
      } else if (type == LinkType.CompactSubClassLink) {
        l = new CompactSubClassLink(id);
      } else {
        logger.error("cannot instanciate a link from the type: " + type.toString());
        return null;
      }
     
      if (l instanceof LabeledLink) {
        ((LabeledLink)l).setStatus(status);
View Full Code Here

Examples of letweb.semanticum.tsd.LinkType

        jcas = aCAS.getJCas();
      } catch (CASException e) {
        throw new CollectionException(e);
      }
     
      LinkType lt = new LinkType(jcas);
     
      //lt.setVideoUrl(links.get(0));
      lt.setVideoUrl(connDb.getVideoUrl(idx));
     
      String [] temp = connDb.getLinks(idx);
      //Inizializzazione dell'array di stringhe
      StringArray ArrayVideoUriStringArray = new StringArray(jcas, temp.length);
      lt.setArrayVideoUri(ArrayVideoUriStringArray);
      //Riempimento dell'array di stringhe
      int i;
      for(i = 0; i<temp.length; i++)
        lt.setArrayVideoUri(i,temp[i]);
      lt.setSourceType(connDb.getSourceType(idx));
     
      temp = connDb.getAuthors(idx);
      StringArray authorsStringArray = new StringArray(jcas, temp.length);
      lt.setAuthors(authorsStringArray);
      for(i = 0; i<temp.length; i++)
        lt.setAuthors(i,temp[i]);
     
      lt.setDate(connDb.getDate(idx));
      lt.setMainTopic(connDb.getMainTopic(idx));
      lt.setDescription(connDb.getDescription(idx));
     
      temp = connDb.getKeywords(idx);
      StringArray keywordsStringArray = new StringArray(jcas,temp.length);
      lt.setKeywords(keywordsStringArray);
      for(i = 0; i<temp.length; i++)
        lt.setKeywords(i,temp[i]);
      lt.setId(connDb.getId().get(idx++));
      lt.addToIndexes();
     
  }
View Full Code Here

Examples of models.LinkType

        User user = getLoggedUser();
        List<Form<Link>> liensForms = new ArrayList<Form<Link>>();
        Form<Link> newLink = null;
        String newLabel = null;
        String newUrl = null;
        LinkType newLinkType = LinkType.OTHER;
        JsonNode userJson = request().body().asJson();

        // Parcour des links du user;
        ArrayNode liens = (ArrayNode) userJson.get("links");
        for (JsonNode lien : liens) {
View Full Code Here

Examples of net.floodlightcontroller.linkdiscovery.ILinkDiscovery.LinkType

        if (ld != null) {
            links.putAll(ld.getLinks());
            for (Link link: links.keySet()) {
                LinkInfo info = links.get(link);
                LinkType type = ld.getLinkType(link, info);
                if (type == LinkType.DIRECT_LINK || type == LinkType.TUNNEL) {
                    LinkWithType lwt;

                    long src = link.getSrc();
                    long dst = link.getDst();
                    short srcPort = link.getSrcPort();
                    short dstPort = link.getDstPort();
                    Link otherLink = new Link(dst, dstPort, src, srcPort);
                    LinkInfo otherInfo = links.get(otherLink);
                    LinkType otherType = null;
                    if (otherInfo != null)
                        otherType = ld.getLinkType(otherLink, otherInfo);
                    if (otherType == LinkType.DIRECT_LINK ||
                            otherType == LinkType.TUNNEL) {
                        // This is a bi-direcitonal link.
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.