Package trust.jfcm

Examples of trust.jfcm.CognitiveMap


    //insert maps
    Collection<CognitiveMap> mapCollection = maps.values();
    Iterator<CognitiveMap> it = mapCollection.iterator();
    Collection<FcmConnection> links;
    while(it.hasNext()){
      CognitiveMap map = it.next();
     
      //insert vertex
      Set<String> mapConcepts = map.getConcepts().keySet();
      vertices = new Vector<MyVertex>();
      for(String concept : mapConcepts){
        System.out.println(concept);
        MyVertex v = new MyVertex(concept);
        vertices.add(v);
        graph.addVertex(v);
      }
     
      //insert links
      links = maps.get(map.getName()).getConnections().values();
      Iterator<FcmConnection> itc = links.iterator();
      edges = new Vector<MyEdge>();
      while(itc.hasNext()){
        WeightedConnection link = (WeightedConnection)itc.next();
        //System.out.println("Edge from" + link.getFrom().getName() + "to" + link.getTo().getName());
View Full Code Here

TOP

Related Classes of trust.jfcm.CognitiveMap

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.