Package ca.ucalgary.ispia.rebac

Examples of ca.ucalgary.ispia.rebac.Direction


      BoxImpl temp = (BoxImpl) tPolicy;
     
      // Get contained fields
      Policy tempA = temp.getPolicy();
      Object relationID = temp.getRelationIdentifier();
      Direction direction = temp.getDirection();
      // Translate contained policy
      tempA = new NegationImpl (translate(tempA));
      // Create translated policy
      Policy tempB = new DiamondImpl(tempA, relationID, direction);   
      translatedPolicy = new NegationImpl (tempB);
    }
   
    else if (tPolicy instanceof DiamondImpl){
      // Already primitive. Recurse on contained policy.
     
      DiamondImpl temp = (DiamondImpl) tPolicy;
      // Get contained fields
      Policy tempA = temp.getPolicy();
      Object relationID = temp.getRelationIdentifier();
      Direction direction = temp.getDirection();
      // Translate contained policy
      tempA = translate(tempA);
      // Create translated policy
      translatedPolicy = new DiamondImpl(tempA, relationID, direction);
    }
View Full Code Here


        BoxImpl temp = (BoxImpl) tPolicy;
       
        // Get contained fields
        Policy tempA = temp.policy;
        Object relationID = temp.relationIdentifier;
        Direction direction = temp.direction;
        // Translate contained policy
        tempA = new NegationImpl (translate(tempA));
        // Create translated policy
        Policy tempB = new DiamondImpl(tempA, relationID, direction);   
        translatedPolicy = new NegationImpl (tempB);
      }
     
      else if (tPolicy instanceof ConjunctionImpl){
        // Conjunction(policyA, policyB) =
        //            Negation(Disjunction((Negation(policyA)), (Negation(policyB))))
       
        ConjunctionImpl temp = (ConjunctionImpl) tPolicy;
        // Get contained fields
        Policy tempA = temp.policyA;
        Policy tempB = temp.policyB;
        // Translate contained policies
        tempA = new NegationImpl (translate(tempA));
        tempB = new NegationImpl (translate(tempB));
        // Create translated policy
        Policy tempC = new DisjunctionImpl(tempA, tempB);
        translatedPolicy = new NegationImpl (tempC);
       
      }
         
      else if (tPolicy instanceof DiamondImpl){
        // Already primitive. Recurse on contained policy.
       
        DiamondImpl temp = (DiamondImpl) tPolicy;
        // Get contained fields
        Policy tempA = temp.policy;
        Object relationID = temp.relationIdentifier;
        Direction direction = temp.direction;
        // Translate contained policy
        tempA = translate(tempA);
        // Create translated policy
        translatedPolicy = new DiamondImpl(tempA, relationID, direction);
      }
View Full Code Here

      // The case is combined since both behave similarly

      // Initialize the sub policy, relation identifier, and direction
      Policy policyA = null;
      Object relationIdentifier = null;
      Direction direction = null;
     
      // Get the children nodes of element
      NodeList nodeList = element.getChildNodes();
     
      // Loop through the children nodes of element
View Full Code Here

      Policy tempA = temp.getPolicy();

      Object relationID = temp.getRelationIdentifier();

      Direction direction = temp.getDirection();

      // Translate contained policy

      tempA = new NegationImpl (translate(tempA));

      // Create translated policy

      Policy tempB = new DiamondImpl(tempA, relationID, direction);   

      translatedPolicy = new NegationImpl (tempB);

    }

   

    else if (tPolicy instanceof DiamondImpl){

      // Already primitive. Recurse on contained policy.

     

      DiamondImpl temp = (DiamondImpl) tPolicy;

      // Get contained fields

      Policy tempA = temp.getPolicy();

      Object relationID = temp.getRelationIdentifier();

      Direction direction = temp.getDirection();

      // Translate contained policy

      tempA = translate(tempA);
View Full Code Here

      // The case is combined since both behave similarly

      // Initialize the sub policy, relation identifier, and direction
      Policy policyA = null;
      Object relationIdentifier = null;
      Direction direction = null;
     
      // Get the children nodes of element
      NodeList nodeList = element.getChildNodes();
     
      // Loop through the children nodes of element
View Full Code Here

      Policy tempA = temp.getPolicy();

      Object relationID = temp.getRelationIdentifier();

      Direction direction = temp.getDirection();

      // Translate contained policy

      tempA = new NegationImpl (translate(tempA));

      // Create translated policy

      Policy tempB = new DiamondImpl(tempA, relationID, direction);   

      translatedPolicy = new NegationImpl (tempB);

    }

   

    else if (tPolicy instanceof DiamondImpl){

      // Already primitive. Recurse on contained policy.

     

      DiamondImpl temp = (DiamondImpl) tPolicy;

      // Get contained fields

      Policy tempA = temp.getPolicy();

      Object relationID = temp.getRelationIdentifier();

      Direction direction = temp.getDirection();

      // Translate contained policy

      tempA = translate(tempA);
View Full Code Here

      // The case is combined since both behave similarly

      // Initialize the sub policy, relation identifier, and direction
      Policy policyA = null;
      Object relationIdentifier = null;
      Direction direction = null;
     
      // Get the children nodes of element
      NodeList nodeList = element.getChildNodes();
     
      // Loop through the children nodes of element
View Full Code Here

TOP

Related Classes of ca.ucalgary.ispia.rebac.Direction

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.