001package de.monochromata.anaphors.cog.activation;
002
003/**
004 * An activation formula in which all {@link Activatable}s are always active to
005 * the same extent.
006 * 
007 * @since 1.0.146
008 */
009public class AllActiveFormula implements ActivationFormula {
010
011        private static final Active ACTIVE = new Active();
012
013        @Override
014        public Active estimateActivation(final Activatable activatable, final long timestamp) {
015                return ACTIVE;
016        }
017
018        public static class Active implements EstimatedActivationValue {
019
020                @Override
021                public int compareTo(final EstimatedActivationValue o) {
022                        return 0;
023                }
024
025                @Override
026                public boolean equals(final Object obj) {
027                        return obj != null && obj.getClass() == getClass();
028                }
029
030                @Override
031                public int hashCode() {
032                        return 0;
033                }
034
035        }
036}