de.fhg.igd.semoa.server
Class AgentState

java.lang.Object
  extended byde.fhg.igd.semoa.server.AgentState
All Implemented Interfaces:
Serializable

public class AgentState
extends Object
implements Serializable

Represents the state of an agent.

Version:
"$Id: AgentState.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Volker Roth
See Also:
Serialized Form

Field Summary
private  String id_
          The string that identifies the field type.
static AgentState INITIAL
          The initial state of the agent.
static AgentState INVALID
          The agent is invalid and you shouldn't have a reference to it any more in the first place.
static AgentState LOADED
          The properties of the agent are loaded.
static AgentState MIGRATED
          The agent migrated successfully.
static AgentState RUNNING
          The agent is up and running.
static AgentState STOPPED
          The agent is stopped.
 
Constructor Summary
private AgentState(String id)
          No one but this class creates instances.
 
Method Summary
 String toString()
          Returns a string describing the state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INITIAL

public static final AgentState INITIAL
The initial state of the agent.


LOADED

public static final AgentState LOADED
The properties of the agent are loaded. This state implies that the Resource of the agent is initialized as well. However, important structures such as thread group or class loader are not yet initialized.


RUNNING

public static final AgentState RUNNING
The agent is up and running.


STOPPED

public static final AgentState STOPPED
The agent is stopped. No threads of the agent are left with the possible exception of the main thread, but this thread is under control of the system and no agent classes are on its stack any more.


MIGRATED

public static final AgentState MIGRATED
The agent migrated successfully.


INVALID

public static final AgentState INVALID
The agent is invalid and you shouldn't have a reference to it any more in the first place. So get your hands off and forget about that AgentContext.


id_

private transient String id_
The string that identifies the field type.

Constructor Detail

AgentState

private AgentState(String id)
No one but this class creates instances.

Parameters:
id - The string that identifies the field type.
Method Detail

toString

public String toString()
Returns a string describing the state.



Copyright © Fraunhofer Gesellschaft. All Rights Reserved.