Package org.mizartools.dli

Examples of org.mizartools.dli.Type


  static Prefices getPrefices(
      org.mizartools.system.utility.AbstractSignature abstractSignature,
      LinkedList<org.mizartools.system.xml.Typ> typList) throws DliException {
    LinkedList<Type> typeList = new LinkedList<Type>();
    for (org.mizartools.system.xml.Typ typ : typList) {
      Type type = getType(abstractSignature, typ);
      typeList.add(type);
    }
    Prefices prefices = new Prefices(typeList);
    return prefices;
  }
View Full Code Here


    case pred : itemType = ItemType.pred; break;
    case attr : itemType = ItemType.attr; break;
    default : throw new DliException();
    }
    ItemId itemId = new ItemId(articleId, itemType, uniqueIdentifier.nr);
    Type type = new Type(adjectiveList, itemId, termList, false);
    Redefinition redefinition = new Redefinition(type);
    return redefinition;
  }
View Full Code Here

      org.mizartools.system.utility.AbstractSignature abstractSignature,
      org.mizartools.system.xml.Typ typ) throws DliException{
        LinkedList<Adjective> adjectiveList = getAdjectiveList(abstractSignature, typ.getClusterList());
      ItemId itemId = getItemId(abstractSignature, typ)
        LinkedList<Term> termList = getTermList(abstractSignature, typ.getTermList());
      Type type = new Type(adjectiveList, itemId, termList, true);
      return type;
    }
View Full Code Here

    LinkedList<Locus> locusList = new LinkedList<Locus>();
    int nr = 0;
    for (org.mizartools.system.xml.Typ typ : argTypes.getTypList()) {
      nr++;
      LocusVar locusVar = new LocusVar(nr);
      Type type = getType(abstractSignature, typ);
      locusList.add(new Locus(locusVar, type));
    }
    return locusList;
  }
View Full Code Here

  static Abbreviation getAbbreviation(
      org.mizartools.system.utility.AbstractSignature abstractSignature,
      org.mizartools.system.xml.Expansion expansion) throws DliException {
    if (expansion == null) return null;
    Type type = getType(abstractSignature, expansion.getTyp());
    Abbreviation abbreviation = new Abbreviation(type);
    return abbreviation;
  }
View Full Code Here

      VariableId vid2 = new VariableId();
      vid2.setId(vid.getId());
      for (org.mizartools.system.xml.Typ typ : fraenkel.getTypList()) {
        vid2.increment();
        Variable variable = new Variable(vid2.getId());
        Type type = getType(abstractSignature, typ);
        varList.add(new Var(variable, type));
      }
      Term term1 = getTerm(abstractSignature, fraenkel.getTerm(), vid2);
      termDli = new Fraenkel(varList, term1, getFormula(abstractSignature, fraenkel.getFormula(), vid2));
    } else throw new DliException();
View Full Code Here

      if (vid1 == null) {
        vid.increment();
        vid1 = vid.getId();
      }
      Variable variable = new Variable(vid1);
      Type type = getType(abstractSignature, ((org.mizartools.system.xml.For) formula).getTyp());
      VariableId vid2 = new VariableId();
      vid2.setId(vid.getId());
      Formula formula1 = getFormula(abstractSignature, ((org.mizartools.system.xml.For) formula).getFormula(), vid2);
      formulaDli = new For(variable, type, formula1);
    } else if (formula instanceof org.mizartools.system.xml.And){
        LinkedList<Formula> formulaList = new LinkedList<Formula>();
      for (org.mizartools.system.xml.Formula formula1 : ((org.mizartools.system.xml.And) formula).getFormulaList()) {
        VariableId vid2 = new VariableId();
        vid2.setId(vid.getId());
        formulaList.add(getFormula(abstractSignature, formula1, vid2));
      }
      formulaDli = new And(formulaList);
    } else if (formula instanceof org.mizartools.system.xml.Not){
      formulaDli = new Not(getFormula(abstractSignature, ((org.mizartools.system.xml.Not) formula).getFormula(), vid));
    } else if (formula instanceof org.mizartools.system.xml.Pred){
      org.mizartools.system.xml.Pred pred = (org.mizartools.system.xml.Pred) formula;
      LinkedList<Term> termList = new LinkedList<Term>();
      for (org.mizartools.system.xml.Term term : pred.getTermList()) {
        termList.add(getTerm(abstractSignature, term, vid));
      }
      if (pred.getKind() == Kind.P) {
        if (pred.getNr() == null) throw new DliException();
        formulaDli = new PrivateFormula(pred.getNr(), termList);
      }
      else {
        ItemId itemId = getItemId(abstractSignature, pred.getKind(), pred.getNr());
        switch (pred.getKind()){
        case V :
          LinkedList<Adjective> adjectiveList = new LinkedList<Adjective>();
          Type type = new Type(adjectiveList, itemId, termList, false);
          formulaDli = new Is(termList, type);
          break;
        default :
          formulaDli = new Pred(itemId, termList);
        }
      }
    } else if (formula instanceof org.mizartools.system.xml.Is){
      org.mizartools.system.xml.Is is = (org.mizartools.system.xml.Is) formula;
      Type type = getType(abstractSignature, is.getTyp());
      LinkedList<Term> termList = new LinkedList<Term>();
      termList.add(getTerm(abstractSignature, is.getTerm(), vid));
      formulaDli = new Is(termList, type);
    } else if (formula instanceof org.mizartools.system.xml.Verum){
      formulaDli = new Verum();
View Full Code Here

      LinkedList<org.mizartools.system.xml.Typ> typList) throws DliException {
      LinkedList<Type> typeList = new LinkedList<Type>();
//    int nr = 0;
    for (org.mizartools.system.xml.Typ typ : typList) {
//      nr++;
      Type type = getType(abstractSignature, typ);
      typeList.add(type);
    }
    Loci loci = new Loci(typeList);
    return loci;
  }
View Full Code Here

    ArticleId articleId = new ArticleId(constructor.getAid());
    ItemType itemType = null;
    ItemDefinition itemDefinition = null;
    LinkedList<Locus> locusList = Adapter.getLocusList(abstractSignature, constructor.getArgTypes());
    Properties properties = Adapter.getProperties(constructor.getProperties());
    Type type = null;
    Redefinition redefinition = Adapter.getRedefinition(abstractSignature, constructor);
    switch (constructor.getKind()) {
    case M :
      type = Adapter.getType(abstractSignature, constructor.getTypList().getFirst());
      itemDefinition = new Mode(locusList, type, properties, redefinition);
View Full Code Here

      org.mizartools.system.xml.CCluster cCluster)
    throws DliException {
    ArticleId articleId = new ArticleId(cCluster.getAid());
    ItemDefinition itemDefinition = null;
    Loci loci = Adapter.getLoci(abstractSignature, cCluster.getArgTypes());
    Type type = null;
    if (cCluster.getTyp() != null) type = Adapter.getType(abstractSignature, cCluster.getTyp());
    LinkedList<org.mizartools.system.xml.Cluster> cluster1List = new LinkedList<org.mizartools.system.xml.Cluster>();
    if (cCluster.getCluster1() != null) cluster1List.add(cCluster.getCluster1());
    Antecedent antecedent = new Antecedent(Adapter.getAdjectiveList(abstractSignature, cluster1List));
    LinkedList<org.mizartools.system.xml.Cluster> clusterList2 = new LinkedList<org.mizartools.system.xml.Cluster>();
View Full Code Here

TOP

Related Classes of org.mizartools.dli.Type

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.