rubanetra/rubanetra-0.0.6-distribution/conf/DefaultKnowledgeBase/at.jku.fim.rubanetra.drools.rules/00.Basic.Metadata.drl
2020-04-06 18:44:45 +02:00

85 lines
3.2 KiB
Plaintext

/**
* This file is part of Rubanetra.
* Copyright (C) 2013,2014 Stefan Swerk (stefan_rubanetra@swerk.priv.at)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import at.jku.fim.rubanetra.protocol.activity.*;
import at.jku.fim.rubanetra.protocol.activity.arp.*;
import at.jku.fim.rubanetra.protocol.activity.dhcp.*;
import at.jku.fim.rubanetra.protocol.activity.dns.*;
import at.jku.fim.rubanetra.protocol.activity.ethernet.*;
import at.jku.fim.rubanetra.protocol.activity.ftp.*;
import at.jku.fim.rubanetra.protocol.activity.http.*;
import at.jku.fim.rubanetra.protocol.activity.icmp.*;
import at.jku.fim.rubanetra.protocol.activity.ip.*;
import at.jku.fim.rubanetra.protocol.activity.msn.*;
import at.jku.fim.rubanetra.protocol.activity.netbios.*;
import at.jku.fim.rubanetra.protocol.activity.pop3.*;
import at.jku.fim.rubanetra.protocol.activity.skype.*;
import at.jku.fim.rubanetra.protocol.activity.smtp.*;
import at.jku.fim.rubanetra.protocol.activity.snmp.*;
import at.jku.fim.rubanetra.protocol.activity.tcp.*;
import at.jku.fim.rubanetra.protocol.activity.telnet.*;
import at.jku.fim.rubanetra.protocol.activity.tls.*;
import at.jku.fim.rubanetra.protocol.activity.udp.*;
// using the MVEL expression language, see http://mvel.codehaus.org/
dialect "mvel"
/**
* The following statements declare the metadata of already existing Java abstract classes/interfaces of the
* at.jku.fim.rubanetra.protocol.activity package.
* Specifically it defines these classes as events using the start-timestamp of the activity itself
* as the actual timestamp (used for reasoning) and sets the expiration time of the individual objects.
* If the objects should not expire based on this timer, remove or adapt the @expires attributes.
* Note, however, unless these attributes are overwritten on the Activity-class implementation level, these settings
* will be inherited for all activities (since all Activity-implementations should extend or implement one of the
* abstract classes/interfaces listed below.
*/
declare DroolsBaseActivity
@role( event )
@author( Stefan Swerk )
@timestamp( getStartTimestamp() )
@expires( 30m )
end
declare Activity
@role( event )
@author( Stefan Swerk )
@timestamp( getStartTimestamp() )
@expires( 30m )
end
declare ReplaceableActivity
@role( event )
@author( Stefan Swerk )
@timestamp( getStartTimestamp() )
@expires( 30m )
end
declare AbstractActivity
@role( event )
@author( Stefan Swerk )
@timestamp( getStartTimestamp() )
@expires( 30m )
end
declare AbstractReplaceableActivity
@role( event )
@author( Stefan Swerk )
@timestamp( getStartTimestamp() )
@expires( 30m )
end