コード例 #1
0
 void updateParams(SynthesizeParameters parms)
 {
     // TODO: check parameters compatibility
     if (m_Params.getFlags() != parms.getFlags())
     {
         throw new Exception("SynthesisQuery::update - new parameters are not compatible with previous!");
     }
     m_Params = parms;
 }
コード例 #2
0
        public bool equalTo(SynthesizeParameters parms)
        {
            bool same = true;

            same &= getConstraintThreshold() == parms.getConstraintThreshold();
            same &= getCoherenceThreshold() == parms.getCoherenceThreshold();
            same &= getCutAvoidance() == parms.getCutAvoidance();
            same &= getFlags() == parms.getFlags();

            return(same);
        }