public static class BaseMatcherEndpoint.Connected extends java.lang.Object implements Agent.Status
BaseMatcherEndpoint.Connected
object describes the current status and configuration of an BaseMatcherEndpoint
.
This status can be queried through the BaseMatcherEndpoint.getStatus()
method and will give a snapshot of
the state at that time.Constructor and Description |
---|
BaseMatcherEndpoint.Connected(java.lang.String clusterId,
MarketBasis marketBasis)
Creates a new
BaseMatcherEndpoint.Connected object. |
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). |
public BaseMatcherEndpoint.Connected(java.lang.String clusterId, MarketBasis marketBasis)
BaseMatcherEndpoint.Connected
object.clusterId
- the current cluster identifier of the cluster this matcher is connected tomarketBasis
- the MarketBasis
of the cluster this matcher is connected topublic java.lang.String getClusterId()
getClusterId
in interface Agent.Status
Agent
parent.public MarketBasis getMarketBasis()
getMarketBasis
in interface Agent.Status
MarketBasis
on which this Agent
is running and basing its Bid
s
and Price
s.public boolean isConnected()
Agent.Status
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).isConnected
in interface Agent.Status
true
when the agent is connected to the cluster.