Add PdpMessage.appliesTo() 36/84436/2
authorJim Hahn <jrh3@att.com>
Sun, 7 Apr 2019 13:49:41 +0000 (09:49 -0400)
committerJim Hahn <jrh3@att.com>
Sun, 7 Apr 2019 14:07:33 +0000 (10:07 -0400)
commit53bba4720a910d29a99b20f75529a5457485aed2
tree849c0afa089d0c8156f301d73375a0fe142135fa
parent82699a970d5f06c6dc1391d8beb0efe76bf84089
Add PdpMessage.appliesTo()

Added a method to determine if a message is applicable to a particular
PDP.  This is a common function that should have been added previously,
as each PDP type has had to create an implementation of it.
Nevertheless, this provides a "reference" implementation.

Change-Id: I54073c77a9d2b4c1f902c5ac0bce9fa5fa485503
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
models-pdp/src/main/java/org/onap/policy/models/pdp/concepts/PdpMessage.java
models-pdp/src/main/java/org/onap/policy/models/pdp/concepts/PdpUpdate.java
models-pdp/src/test/java/org/onap/policy/models/pdp/concepts/TestPdpMessage.java