public class PolicyRenderLayer extends java.lang.Object implements RenderLayer
| Modifier and Type | Field and Description |
|---|---|
protected Policy |
policy
The policy to use for visualizing the policy
|
protected StatePolicyPainter |
spp
Painter used to visualize the policy
|
protected java.util.Collection<State> |
statesToVisualize
The states to visualize
|
| Constructor and Description |
|---|
PolicyRenderLayer(java.util.Collection<State> states,
StatePolicyPainter spp,
Policy policy) |
| Modifier and Type | Method and Description |
|---|---|
Policy |
getPolicy()
Returns the policy that will be rendered.
|
StatePolicyPainter |
getSpp()
Returns the state-wise policy painter
|
java.util.Collection<State> |
getStatesToVisualize()
Returns the states that will be visualized
|
void |
render(java.awt.Graphics2D g2,
float width,
float height) |
void |
setPolicy(Policy policy)
Sets the policy to render
|
void |
setSpp(StatePolicyPainter spp)
Sets the state-wise policy painter
|
void |
setStatesToVisualize(java.util.Collection<State> stateValuesToVisualize)
Sets the states to visualize
|
protected java.util.Collection<State> statesToVisualize
protected StatePolicyPainter spp
protected Policy policy
public PolicyRenderLayer(java.util.Collection<State> states, StatePolicyPainter spp, Policy policy)
public java.util.Collection<State> getStatesToVisualize()
public void setStatesToVisualize(java.util.Collection<State> stateValuesToVisualize)
stateValuesToVisualize - the state to visualizepublic StatePolicyPainter getSpp()
public void setSpp(StatePolicyPainter spp)
spp - the state-wise policy painterpublic Policy getPolicy()
public void setPolicy(Policy policy)
policy - the policy to renderpublic void render(java.awt.Graphics2D g2,
float width,
float height)
render in interface RenderLayer