public static interface Agent.Status
Agent.Status
object describes the current connection status of an Agent
. This status can be queried
through the Agent.getStatus()
method and will give a snapshot of the state at that time.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClusterId() |
MarketBasis |
getMarketBasis() |
boolean |
isConnected()
For a agent to be connect, the
Agent.setContext(FlexiblePowerContext) has been called and the agent has
been configured with a clusterId (and usually a market basis). |
java.lang.String getClusterId()
Agent
parent.java.lang.IllegalStateException
- when the agent is not connected (see isConnected()
)MarketBasis getMarketBasis()
MarketBasis
on which this Agent
is running and basing its Bid
s
and Price
s.java.lang.IllegalStateException
- when the agent is not connected (see isConnected()
)boolean isConnected()
Agent.setContext(FlexiblePowerContext)
has been called and the agent has
been configured with a clusterId (and usually a market basis). Only if this is true
should the
agent be used normally.
For an AgentEndpoint
this means that it has been connected through a Session
. For a
MatcherEndpoint
is can be connected simply by having a MarketBasis
configured (e.g. for an
Auctioneer).true
when the agent is connected to the cluster.