org.jgap.distr.grid.common
Class BasicContext
- java.lang.Object
-
- org.jgap.distr.grid.common.BasicContext
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- MessageContext
public class BasicContext extends java.lang.Object implements java.io.SerializableHolds information to identify the context in which a solution should be evolved.- Since:
- 3.3.3
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BasicContext()BasicContext(java.lang.String a_appId, java.lang.Object a_contextId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetAppId()java.lang.ObjectgetContextId()java.lang.StringgetContextIdAsString()voidsetAppId(java.lang.String a_appId)voidsetContextId(java.lang.Object a_contextId)Sets the context id.
-
-
-
Constructor Detail
-
BasicContext
public BasicContext()
-
BasicContext
public BasicContext(java.lang.String a_appId, java.lang.Object a_contextId)
-
-
Method Detail
-
getContextId
public java.lang.Object getContextId()
-
getContextIdAsString
public java.lang.String getContextIdAsString()
- Returns:
- context ID as a string, as it should be a string most times (but not always!)
-
setContextId
public void setContextId(java.lang.Object a_contextId)
Sets the context id. It is an object, not a string, as a request or a response could be available as a header-object and not by its ID.- Parameters:
a_contextId- the context id to set
-
getAppId
public java.lang.String getAppId()
-
setAppId
public void setAppId(java.lang.String a_appId)
-
-
DMelt 3.0 © DataMelt by jWork.ORG