@@ -0,0 +1,2403 @@
+a/**%0A * Copyright (C) 2015 TeeTime (http://teetime.sourceforge.net)%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *         http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage teetime.stage.opad;%0A%0Aimport teetime.framework.AbstractConsumerStage;%0Aimport teetime.framework.InputPort;%0Aimport teetime.framework.OutputPort;%0A%0A/**%0A *%0A * This filter separates input values by their reach of a certain threshold (parameter). It takes events of type %7B@link StorableDetectionResult%7D and channels them%0A * into two output ports, depending on whether the threshold was reached or not. This filter has configuration properties for the (critical) threshold. Although the%0A * configuration of the critical threshold is possible, the value is currently not used by the filter.%0A *%0A * @author original by: Tillmann Carlos Bielefeld, Thomas Duellmann, Tobias Rudolph%0A * @author edit by: Arne Jan Salveter%0A * @since 1.10%0A *%0A */%0Apublic class AnomalyDetectionFilter%3CT%3E extends AbstractConsumerStage%3CT%3E %7B%0A%0A%09private double limit = 0;%0A%09private final OutputPort%3CT%3E outputPortNormal = this.createOutputPort();%0A%09private final OutputPort%3CT%3E outputPortAnnomal = this.createOutputPort();%0A%09private final OutputPort%3CT%3E outputPortAll = this.createOutputPort();%0A%0A%09private final InputPort%3CT%3E inputport = this.createInputPort();%0A%0A%09// _____________End-Attributs__________________________________________________________________________________%0A%0A%09// ______________End-Constructos_____________________________________________________________________%0A%0A%09public void setLimit(final double limit) %7B%0A%09%09this.limit = limit;%0A%09%7D%0A%0A%09// ______________End-Getter/Setter_____________________________________________________________________________%0A%0A%09@Override%0A%09protected void execute(final T element) %7B%0A%0A%09%09if ((StorableDetectionResult) element.getValue() %3E= limit) %7B%0A%0A%09%09%09outputPortAnnomal.send(element);%0A%0A%09%09%7D else %7B%0A%0A%09%09%09outputPortNormal.send(element);%0A%0A%09%09%7D%0A%0A%09%09outputPortAll.send(element);%0A%0A%09%7D%0A%7D

Add first version