public boolean setRelation ( TemporalExtendedPropositionDefinition lhsDef , TemporalExtendedPropositionDefinition rhsDef , Relation relation ) { if ( lhsDef == null || rhsDef == null || relation == null ) { return false ; } if ( ! defs . contains ( lhsDef ) || ! defs . contains ( rhsDef ) ) { return false ; } List < TemporalExtendedPropositionDefinition > rulePair = Arrays . asList ( lhsDef , rhsDef ) ; defPairsMap . put ( rulePair , relation ) ; return true ; }
Sets the relation between the two temporal extended proposition definitions .