Package PrologPlusCG.cg

Examples of PrologPlusCG.cg.Relation


    }
  }

  CG createCGBranch(Relation rel) {
    // 1. Creer le CG cadre
    Relation newRelation = new Relation();
    newRelation.m_pdRelationName = rel.m_pdRelationName;

    Concept concSrce = rel.m_concSource;
    Concept newConcSrce = new Concept(concSrce.m_pdType,
              concSrce.m_pdReferent, concSrce.m_pdValue,
View Full Code Here


    }
   
    Concept concCble = tGC(bGenerateCode, unGC);
   
    if (bGenerateCode) {
      Relation nouvRel = new Relation(new PrologData(typIdRel, idRel),
          concSrce, concCble);
      unGC.addRelation(nouvRel);
    }
  }
View Full Code Here

    }
   
    Concept concSrce = tGC(bGenerateCode, unGC);
   
    if (bGenerateCode) {
      Relation nouvRel = new Relation(new PrologData(typIdRel, idRel),
          concSrce, concCble);
      unGC.addRelation(nouvRel);
    }
  }
View Full Code Here

  public void copyRelations(Vector<Relation> vctRels, Vector<Relation> vctImprPrevuRels) {
    if (vctRels.isEmpty()) {
      return;
    }
   
    Relation rel;
   
    for (Enumeration<Relation> e = vctRels.elements(); e.hasMoreElements();) {
      rel = e.nextElement();
      vctImprPrevuRels.addElement(rel);
    }
View Full Code Here

      Vector<Relation> vctImprPrevuRels) {
    if (vctRels.isEmpty()) {
      return;
    }
   
    Relation rel = vctRels.firstElement();
    printSpaces(Decalage);
    printRelation(rel, Direction, aCG, level, vctConcsVisite, vctImprPrevuRels);
   
    Enumeration<Relation> e = vctRels.elements();
   
View Full Code Here

    }
  }
 
  public void relationsToPrint(Vector<Relation> vctInitRels, Vector<Relation> vctRelsAImpr,
      Vector<Relation> vctImprPrevuRels) {
    Relation rel;
   
    for (Enumeration<Relation> e = vctInitRels.elements(); e.hasMoreElements();) {
      rel = e.nextElement();
     
      if (!vctImprPrevuRels.contains(rel)) {
View Full Code Here

     
      boolean trouve = false;
     
      if (premiereFois && (conc.m_pdReferent == null) &&
          (vctImprPrevuRels != null)) {
        Relation rel;
       
        for (Enumeration<Relation> e = conc.m_vctIncomingRelations.elements();
        e.hasMoreElements() && !trouve;) {
          rel = e.nextElement();
         
View Full Code Here

    // ---------------------------------------------------------------
    boolean bagInclusion(Vector<Relation> lr1, Vector<Relation> lr2, int nivG1, int nivG2)
        throws ExecException {
        Vector<Relation> lst = new Vector<Relation>();
        Relation rla1 = null;
        Relation rla2 = null;
        boolean bFound;

        for (Enumeration<Relation> e = lr1.elements(); e.hasMoreElements();) {
            rla1 = (Relation) e.nextElement();
            bFound = false;
View Full Code Here

                vConcs.removeAllElements();
                vConcs = null;
            } else {
                vConcs.removeAllElements(); // a cause de la creation inutile ici de vConcs

                Relation rl1 = (Relation) G1.m_vctRelations.firstElement();
                Relation rl2;

                for (Enumeration<Relation> e = G2.m_vctRelations.elements();
                        e.hasMoreElements() && !bResult;) {
                    rl2 = (Relation) e.nextElement();
View Full Code Here

    // ------------------------------------------------------------------
    boolean UnifyBranchs(byte BranchDirection, Concept C1, Concept C2,
        int nivG1, int nivG2) throws ExecException {
        boolean bResult = true;
        Relation rel1;
        boolean bAlreadyUnified;
        Vector<Relation> vRels1 = null;

        if (BranchDirection == e_inComeBranch) {
            vRels1 = C1.m_vctIncomingRelations;
View Full Code Here

TOP

Related Classes of PrologPlusCG.cg.Relation

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.