Examples of partialFunction()


Examples of kodkod.ast.Relation.partialFunction()

      final RelationPredicate.Function fp = (RelationPredicate.Function) pred;
      final Expression domain = fp.domain().accept(this);
      final Expression range = fp.range().accept(this);
      ret = (r==fp.relation() && domain==fp.domain() && range==fp.range()) ?
          fp :
          (fp.targetMult()==Multiplicity.ONE ? r.function(domain, range) : r.partialFunction(domain,range));
      break;
    case TOTAL_ORDERING :
      final RelationPredicate.TotalOrdering tp = (RelationPredicate.TotalOrdering) pred;
      final Relation ordered = (Relation) tp.ordered().accept(this);
      final Relation first = (Relation)tp.first().accept(this);
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.