<commit_before>/*******************************************************************************
 * Copyright (c) 2010-2013, <NAME>, <NAME> and <NAME>
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   <NAME> - initial API and implementation
 *******************************************************************************/
package com.incquerylabs.evm.xtext;

import org.eclipse.incquery.runtime.evm.api.event.EventType;
import org.eclipse.incquery.runtime.evm.specific.lifecycle.UnmodifiableActivationLifeCycle;

/**
 * This is the default implementation for an activation life cycle.
 * 
 * The following is the summary of the possible transitions, in the form of
 * StateFrom -Event-> StateTo (U : Update state used, D : Disappeared state
 * used), :
 * <ul>
 * <li>Inactive -Match Appears-> Appeared</li>
 * <li>Appeared -Match Disappears-> Inactive</li>
 * <li>Appeared -Activation fires-> Fired</li>
 * <li>Fired -Match Updates-> Updated</li>
 * <li>Updated -Activation fires-> Fired</li>
 * <li>Updated -Match Disappears-> Inactive / Disappeared</li>
 * <li>Fired -Match Disappears-> Inactive / Disappeared</li>
 * <li>Disappeared -Match Appears-> Fired / Updated</li>
 * <li>Disappeared -Activation fires-> Inactive</li>
 * </ul>
 * 
 * @author <NAME>
 * 
 */
public final class XtextActivationLifeCycle extends UnmodifiableActivationLifeCycle {

	public XtextActivationLifeCycle() {

		super(XtextIndexActivationState.INACTIVE);

		internalAddStateTransition(XtextIndexActivationState.INACTIVE, XtextIndexEventType.CREATED,
				XtextIndexActivationState.APPEARED);

		internalAddStateTransition(XtextIndexActivationState.APPEARED, XtextIndexEventType.REMOVED,
				XtextIndexActivationState.INACTIVE);
		internalAddStateTransition(XtextIndexActivationState.APPEARED, EventType.RuleEngineEventType.FIRE,
				XtextIndexActivationState.FIRED);
<commit_msg>Javadoc cleanup<commit_after>/*******************************************************************************
 * Copyright (c) 2010-2013, <NAME>, <NAME> and <NAME>
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   <NAME> - initial API and implementation
 *******************************************************************************/
package com.incquerylabs.evm.xtext;

import org.eclipse.incquery.runtime.evm.api.event.EventType;
import org.eclipse.incquery.runtime.evm.specific.lifecycle.UnmodifiableActivationLifeCycle;

/**
 * This is the default implementation for an activation life cycle.
 * 
 * The following is the summary of the possible transitions, in the form of
 * StateFrom -Event-> StateTo:
 * <ul>
 * <li>Inactive -Match Appears-> Appeared</li>
 * <li>Appeared -Match Disappears-> Inactive</li>
 * <li>Appeared -Activation fires-> Fired</li>
 * <li>Fired -Match Updates-> Updated</li>
 * <li>Updated -Activation fires-> Fired</li>
 * <li>Updated -Match Disappears-> Inactive / Disappeared</li>
 * <li>Fired -Match Disappears-> Inactive / Disappeared</li>
 * <li>Disappeared -Match Appears-> Fired / Updated</li>
 * <li>Disappeared -Activation fires-> Inactive</li>
 * </ul>
 * 
 * @author <NAME>
 * 
 */
public final class XtextActivationLifeCycle extends UnmodifiableActivationLifeCycle {

	public XtextActivationLifeCycle() {

		super(XtextIndexActivationState.INACTIVE);

		internalAddStateTransition(XtextIndexActivationState.INACTIVE, XtextIndexEventType.CREATED,
				XtextIndexActivationState.APPEARED);

		internalAddStateTransition(XtextIndexActivationState.APPEARED, XtextIndexEventType.REMOVED,
				XtextIndexActivationState.INACTIVE);
		internalAddStateTransition(XtextIndexActivationState.APPEARED, EventType.RuleEngineEventType.FIRE,
				XtextIndexActivationState.FIRED);

{'fraction_non_alphanumeric': 0.17847577307036766, 'fraction_numerical': 0.005843681519357195, 'mean_word_length': 5.469291338582678, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 73, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6651835', 'n_tokens_mistral': 1256, 'n_tokens_neox': 1186, 'n_words': 283}