Examples of DoubleAttribute


Examples of org.jboss.security.xacml.sunxacml.attr.DoubleAttribute

        }
        case ID_DOUBLE_ABS: {
            double arg = ((DoubleAttribute) argValues[0]).getValue();
            double absValue = Math.abs(arg);

            result = new EvaluationResult(new DoubleAttribute(absValue));
            break;
        }
        }

        return result;
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.DoubleAttribute

        }
        case ID_INTEGER_TO_DOUBLE: {
            long arg0 = ((IntegerAttribute) argValues[0]).getValue();
            double doubleValue = (double) arg0;

            result = new EvaluationResult(new DoubleAttribute(doubleValue));
            break;
        }
        }

        return result;
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.DoubleAttribute

        case ID_DOUBLE_MULTIPLY: {
            double arg0 = ((DoubleAttribute) argValues[0]).getValue();
            double arg1 = ((DoubleAttribute) argValues[1]).getValue();
            double product = arg0 * arg1;

            result = new EvaluationResult(new DoubleAttribute(product));
            break;
        }
        }

        return result;
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.DoubleAttribute

                double arg =
                    ((DoubleAttribute) argValues[index]).getValue();
                sum = sum + arg;
            }
           
            result = new EvaluationResult(new DoubleAttribute(sum));
            break;
        }
        }

        return result;
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.DoubleAttribute

            return result;

        // Now that we have real values, perform the floor operation
        double arg = ((DoubleAttribute) argValues[0]).getValue();

        return new EvaluationResult(new DoubleAttribute(Math.floor(arg)));
    }
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.DoubleAttribute

        case ID_DOUBLE_SUBTRACT: {
            double arg0 = ((DoubleAttribute) argValues[0]).getValue();
            double arg1 = ((DoubleAttribute) argValues[1]).getValue();
            double difference = arg0 - arg1;

            result = new EvaluationResult(new DoubleAttribute(difference));
            break;
        }
        }

        return result;
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.DoubleAttribute

                break;
            }

            double quotient = dividend / divisor;

            result = new EvaluationResult(new DoubleAttribute(quotient));
            break;
        }
        }

        return result;
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.DoubleAttribute

                roundValue = lower;
            else
                roundValue = higher;
        }
       
        return new EvaluationResult(new DoubleAttribute(roundValue));
    }
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.