<commit_before><commit_msg>Added a class for dealing with the storage of triggers<commit_after>package edu.wheaton.simulator.statistics;

import edu.wheaton.simulator.entity.AgentID;


/**
 * A class representing all the information to track a specified trigger
 * 
 * @author <NAME>
 * 
 */
public class TriggerSnapshot {

	/*
	 * The unique id of the agent for this snapshot
	 */
	public final AgentID id;
	
	/**
	 * The name of the specified trigger.
	 */
	public final String triggerName;
	
	/*
	 * The priority for the execution of the trigger
	 */
	public final Integer priority;
	
	/*
	 * A way to store the string value of the conditionExpression
	 */
	public final String conditionExpression;
	
	/*
	 * A string to store the behaviorExpression value
	 */
	public final String behaviorExpression;

	/**
	 * Constructor
	 * 
	 * @param id
	 *            The ID of the Agent associated with this trigger.
	 * @param triggerName
	 *            The name of the trigger
	 * @param priority
	 *            A priority setting for the trigger
	 * @param conditionExpression
	 *            A string version of the condition
	 * @param behaviorExpression
	 * 			  A string version of the behavior
	 */
	public TriggerSnapshot(AgentID id, String triggerName, int priority, String conditionExpression, 
			String behaviorExpression) {
		this.id = id;
		this.triggerName = triggerName;
		this.priority = priority;
		this.conditionExpression = conditionExpression;
		this.behaviorExpression = behaviorExpression;
	}

	/**
	 * Produce a string serializing this object
	 * @return a String containing all of the data in this snapshot
	 * 
	 * TODO
	 * 
	 * Format: (Stuff in parentheses is just notes - not actually there)
	 * -----------------------------------------------------------------
	 * TriggerSnapshot
	 */
	public String serialize(){
		//TODO: Take the content and serialize it.
		return "";
	}
}
{'fraction_non_alphanumeric': 0.10578947368421053, 'fraction_numerical': 0.0, 'mean_word_length': 2.6487523992322455, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '6984572', 'n_tokens_mistral': 531, 'n_tokens_neox': 466, 'n_words': 193}