Documentation of 'org.jgap.distr.grid.common.BasicContext' Java class
BasicContext
org.jgap.distr.grid.common

Class BasicContext

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    MessageContext


    public class BasicContext
    extends java.lang.Object
    implements java.io.Serializable
    Holds 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) 
    • 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

You see the box below because you did not login.