boolean getMatches ( Proposition proposition , Collection < String > propIds ) throws KnowledgeSourceReadException { if ( proposition == null ) { return false ; } else { String pId = proposition . getId ( ) ; if ( this . propositionId != null && ! propIds . contains ( pId ) ) { return false ; } // check that all property constraints are met for ( PropertyConstraint pc : this . propertyConstraints ) { if ( ! pc . isSatisfiedBy ( proposition ) ) { return false ; } } return true ; } }
Returns whether a proposition has the same id and value and consistent duration as specified by this extended parameter definition .