
goal.tools.profiler.AgentProfile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime Show documentation
Show all versions of runtime Show documentation
A system for running GOAL multi-agent systems.
The newest version!
package goal.tools.profiler;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import goal.core.runtime.service.agent.NettoRunTime;
import goal.preferences.LoggingPreferences;
import goal.preferences.ProfilerPreferences;
import goal.tools.errorhandling.Warning;
import goal.tools.logging.InfoLog;
import goal.util.datatable.ColumnType;
import goal.util.datatable.DataRow;
import goal.util.datatable.DataTable;
import languageTools.program.agent.AgentId;
/**
* a profile contains a set of ProfileStatistics, one for each object that is
* being profiled. The keys are the associateObjects coming from the core, or a
* carefully crafted object for a number of global accumulated properties (see
* the constants below). Proper implementation of these objects equals()
* function is essential so that events originating from the same Object map
* into the same ProfileStatistic.
*/
public class AgentProfile {
/**
* Object determines the unique source of the ProfileStatistic. It must have
* a properly implemented hashCode and equals function to allow this to
* work.
*/
private final Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy