In some cases, a composite can be represented as a single primitive. For example:
udp and port 53 is represented as two primitives:
anything udp
anything port 53
However these do not conflict, especially as it is an "and", and all elements in a primitive already are logically ANDed together. This could just as easily be:
anything udp and port 53
We need a composite.Simplify() (maybe "distill"?) method that can distill down things that logically can be distilled.
In some cases, a composite can be represented as a single primitive. For example:
udp and port 53
is represented as two primitives:However these do not conflict, especially as it is an "and", and all elements in a primitive already are logically ANDed together. This could just as easily be:
We need a
composite.Simplify()
(maybe "distill"?) method that can distill down things that logically can be distilled.