io.sarl.sre.janus.services.lifecycle
Class ContextReference
All Superinterfaces:
java.lang.Cloneable, java.lang.Comparable<T>
final class ContextReference
extends java.lang.Object
implements java.lang.Comparable<T>, java.lang.Cloneable
Describes any information that is required by the SRE for supporting the agent's life.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.6.0
Property Summary
Modifier and type Property and description
Address addressInDefaultSpace
Replies the address of the agent into the default space.
Context context
Replies the context.
OpenEventSpace defaultSpace
Replies the default space.
Constructor Summary
Constructor and description
new(AgentLife,Context,Address)
Constructor.
Action Summary
Modifier and type Action and description
ContextReference clone
int compareTo(ContextReference)
Address getAddressInDefaultSpace
Replies the address of the agent into the default space.
Context getContext
Replies the context.
OpenEventSpace getDefaultSpace
Replies the default space.
java.lang.String toString
Property Details
addressInDefaultSpace
val addressInDefaultSpace : Address
Replies the address of the agent into the default space.

This property is an alias for the action: getAddressInDefaultSpace

context
val context : Context
Replies the context.

This property is an alias for the action: getContext

defaultSpace
val defaultSpace : OpenEventSpace
Replies the default space.

This property is an alias for the action: getDefaultSpace

Constructor Details
new(AgentLife,Context,Address)
new(AgentLife,Context,Address)
Constructor.
Parameters:
context - the content to reference.
address - the address of the agent in the default space of the given context.
Action Details
clone
def clone : ContextReference
compareTo(ContextReference)
def compareTo(ContextReference) : int
getAddressInDefaultSpace
def getAddressInDefaultSpace : Address
Replies the address of the agent into the default space.
getContext
def getContext : Context
Replies the context.
getDefaultSpace
def getDefaultSpace : OpenEventSpace
Replies the default space.
toString
def toString : java.lang.String