This class represents the soar process. Debugger windows register here for interesting events sent to/from the soar process.
| 46 | * |
| 47 | ********************************************************************************************/ |
| 48 | public class Document implements Kernel.AgentEventInterface, |
| 49 | Kernel.SystemEventInterface |
| 50 | { |
| 51 | public static final String kCreateNewWindowProperty = "Agent.CreateNewWindow"; |
| 52 | |
| 53 | public static final String kCloseOnDestroyProperty = "Agent.CloseOnDestroy"; |
| 54 | |
| 55 | private static final String kConnectionName = "java-debugger"; |
| 56 | |
| 57 | /** |
| 58 | * This list of versions will be checked, in order from first to last, when |
| 59 | * looking for settings to copy. This only comes into play on the first |
| 60 | * launch of a new version of the debugger |
| 61 | */ |
| 62 | /** |
| 63 | * There's no need to have this list get too long--3 versions should be |
| 64 | * plenty. If we change the layout/properties in a way that's not backwards |
| 65 | * compatible, need to clear this list. |
| 66 | **/ |
| 67 | public static final String[] kPrevVersions = new String[] { "9_0_1", |
| 68 | "8_6_3" }; |
| 69 | |
| 70 | /** |
| 71 | * This object is used to get strings for Soar commands in a version |
| 72 | * independent way |
| 73 | */ |
| 74 | private SoarCommands m_SoarCommands = new SoarCommands(); |
| 75 | |
| 76 | /** |
| 77 | * The properties for this application (holds user preferences). Version |
| 78 | * specific with debugger releases (or using an older version of debugger |
| 79 | * could conflict) |
| 80 | */ |
| 81 | protected AppProperties m_AppProperties; |
| 82 | |
| 83 | /** |
| 84 | * The list of all modules (types of debugger windows) that exist. This is a |
| 85 | * list of types, not a list of window instances. |
| 86 | */ |
| 87 | private ModuleList m_ModuleList = new ModuleList(); |
| 88 | |
| 89 | private SoarChangeGenerator m_SoarChangeGenerator = new SoarChangeGenerator(); |
| 90 | |
| 91 | /** |
| 92 | * Stores the pointer to the Soar kernel we are currently interacting with |
| 93 | * (can be local to this process or remote) |
| 94 | */ |
| 95 | private Kernel m_Kernel = null; |
| 96 | |
| 97 | /** |
| 98 | * True if we are working with a remote kernel (not running inside our |
| 99 | * editor but in another process) |
| 100 | */ |
| 101 | private boolean m_IsRemote = false; |
| 102 | |
| 103 | /** True if we are shutting down the current connection */ |
| 104 | private boolean m_IsStopping = false; |
| 105 |
no outgoing calls
no test coverage detected