package Ġcom . l ur king . cobra . blog . farm . impl . cycle . selection . filter . threshold Ċ Ċ import Ġcom . l ur king . cobra . blog . farm . api . cycle . selection . filter . Selection Filter Ċ import Ġcom . l ur king . cobra . blog . farm . api . cycle . selection . filter . Selection Filter . Companion . THRESHOLD _ FILTER Ċ import Ġcom . l ur king . cobra . blog . farm . api . cycle . selection . filter . Selection FilterChain Ċ import Ġcom . l ur king . cobra . blog . farm . api . publication . rating . Publishing Rating Service Ċ import Ġcom . l ur king . cobra . blog . farm . api . cycle . selection . filter . threshold . Threshold Value Producer Ċ import Ġcom . l ur king . cobra . blog . farm . api . publication . model . Publication Ċ import Ġcom . l ur king . cobra . blog . farm . api . publication . model . Publication Strategy Ċ import Ġmu . K Logging Ċ Ċ class ĠThreshold Filter ( private Ġval Ġhold Value Resolver : ĠThreshold Value Producer ) Ġ: ĠSelection Filter Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġinvoke ( publication : ĠPublic ation , Ġchain : ĠSelection FilterChain ): ĠPublic ation Strategy Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġrate : ĠDouble Ġ= Ġ Ġpublication . rating ĊĊĠĠĠĠĠĠĠ Ġval Ġfreeze Upper Bound Ġ= Ġhold Value Resolver . freeze Upper Bound ( publication ) ĊĠĠĠĠĠĠĠ Ġif ( rate Ġ<= Ġfreeze Upper Bound ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġlogger . warn Ġ{ Ġ" Threshold Ġfilter Ġ[ log , Ġurn Ġ= Ġ${ publication . urn }, Ġuri Ġ= Ġ${ publication . uri } Ġ] Ġpublication Ġ" Ġ+ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" rating Ġ{ ${ publication . rating }} Ġunder Ġthreshold Ġfreeze Ġupper Ġbound Ġ[$ freeze Upper Bound ]" Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠPublic ation Strategy . FREE ZE ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġval Ġpublishing Low Bound Ġ= Ġhold Value Resolver . publishing Low Bound ( publication ) ĊĠĠĠĠĠĠĠ Ġif ( rate Ġ<= Ġpublishing Low Bound ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġlogger . info Ġ{ Ġ" Threshold Ġfilter Ġ[ log , Ġurn Ġ= Ġ${ publication . urn }, Ġuri Ġ= Ġ${ publication . uri } Ġ] Ġpublication Ġ" Ġ+ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" rating Ġ{ ${ publication . rating }} Ġunder Ġthreshold Ġpublishing Ġlow Ġbound Ġ[$ publishing Low Bound ]" Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠPublic ation Strategy . GRO W ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġreturn Ġchain . invoke ( publication ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Order (): ĠInt Ġ= ĠTH RESH OLD _ FILTER ĊĊĠĠĠ Ġcompanion Ġobject : ĠK Logging () Ċ }