本文整理匯總了Java中burlap.oomdp.visualizer.StateRenderLayer類的典型用法代碼示例。如果您正苦於以下問題:Java StateRenderLayer類的具體用法?Java StateRenderLayer怎麽用?Java StateRenderLayer使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
StateRenderLayer類屬於burlap.oomdp.visualizer包,在下文中一共展示了StateRenderLayer類的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getStateRenderLayer
import burlap.oomdp.visualizer.StateRenderLayer; //導入依賴的package包/類
public StateRenderLayer getStateRenderLayer(){
StateRenderLayer rl = new StateRenderLayer();
rl.addStaticPainter(new WallPainter());
rl.addObjectClassPainter(CLASSLOCATION, new LocationPainter());
rl.addObjectClassPainter(CLASSAGENT, new AgentPainter());
return rl;
}
示例2: getStateRenderLayer
import burlap.oomdp.visualizer.StateRenderLayer; //導入依賴的package包/類
/**
* Returns a {@link burlap.oomdp.visualizer.StateRenderLayer} for {@link burlap.domain.singleagent.blockdude.BlockDudeVisualizer}.
* @param maxx the max x dimensionality of the world
* @param maxy the max y dimensionality of the world
* @return a {@link burlap.oomdp.visualizer.StateRenderLayer} for {@link burlap.domain.singleagent.blockdude.BlockDudeVisualizer}.
*/
public static StateRenderLayer getStateRenderLayer(int maxx, int maxy){
StateRenderLayer srl = new StateRenderLayer();
srl.addObjectClassPainter(BlockDude.CLASSBRICKS, new BricksPainter(maxx, maxy));
srl.addObjectClassPainter(BlockDude.CLASSAGENT, new AgentPainter(maxx, maxy));
srl.addObjectClassPainter(BlockDude.CLASSEXIT, new ExitPainter(maxx, maxy));
srl.addObjectClassPainter(BlockDude.CLASSBLOCK, new BlockPainter(maxx, maxy));
return srl;
}
示例3: getStateRenderLayer
import burlap.oomdp.visualizer.StateRenderLayer; //導入依賴的package包/類
/**
* Returns a {@link burlap.oomdp.visualizer.StateRenderLayer} a the {@link burlap.domain.singleagent.lunarlander.LunarLanderDomain}
* using the provided {@link burlap.domain.singleagent.lunarlander.LunarLanderDomain.LLPhysicsParams} to define the
* visualized movement space and rotation degrees.
* @param physParams the {@link burlap.domain.singleagent.lunarlander.LunarLanderDomain.LLPhysicsParams} specifying the visualized movement space of the domain and the rotation degrees
* @return a {@link burlap.oomdp.visualizer.StateRenderLayer} for the {@link burlap.domain.singleagent.lunarlander.LunarLanderDomain}
*/
public static StateRenderLayer getStateRenderLayer(LunarLanderDomain.LLPhysicsParams physParams){
StateRenderLayer slr = new StateRenderLayer();
slr.addObjectClassPainter(LunarLanderDomain.AGENTCLASS, new AgentPainter(physParams));
slr.addObjectClassPainter(LunarLanderDomain.OBSTACLECLASS, new ObstaclePainter(physParams));
slr.addObjectClassPainter(LunarLanderDomain.PADCLASS, new PadPainter(physParams));
return slr;
}
示例4: getVisualizer
import burlap.oomdp.visualizer.StateRenderLayer; //導入依賴的package包/類
/**
* Returns visualizer for a grid world domain with the provided wall map. This method has been deprecated because the domain is no longer necessary.
* Use the {@link #getVisualizer(int[][])} method instead.
* @param d the domain of the grid world
* @param map the wall map matrix where 0s indicate it is clear of walls, 1s indicate a full cell wall in that cell, 2s indicate a 1D north wall, 3s indicate a 1D east wall, and 4s indicate a 1D north and east wall.
* @return a grid world domain visualizer
*/
@Deprecated
public static Visualizer getVisualizer(Domain d, int [][] map){
StateRenderLayer r = getRenderLayer(d, map);
Visualizer v = new Visualizer(r);
return v;
}
示例5: getStateRenderLayer
import burlap.oomdp.visualizer.StateRenderLayer; //導入依賴的package包/類
/**
* Returns a {@link StateRenderLayer} for the Macro-Cell GridWorld Visualizer and reward weights associated with a set of MacroCell Propositional functions.
* @param map a map of the grid world
* @param propFunctions the macro cell propositional functions
* @param rewardMap the reward weights associated with the propositional function names
* @return a {@link StateRenderLayer}
*/
public static StateRenderLayer getStateRenderLayer(int [][] map, MacroCellGridWorld.InMacroCellPF[] propFunctions, Map<String, Double> rewardMap){
StateRenderLayer r = new StateRenderLayer();
r.addStaticPainter(new GridWorldVisualizer.MapPainter(map));
r.addStaticPainter(new MacroCellRewardWeightPainter(map, propFunctions, rewardMap));
r.addObjectClassPainter(GridWorldDomain.CLASSAGENT, new GridWorldVisualizer.CellPainter(1, Color.gray, map));
return r;
}
示例6: getStateRenderLayer
import burlap.oomdp.visualizer.StateRenderLayer; //導入依賴的package包/類
public StateRenderLayer getStateRenderLayer(){
StateRenderLayer rl = new StateRenderLayer();
rl.addObjectClassPainter(GoldMineSAConstants.CLS_WALL,new GoldMineSAPainterWall(sizeX,sizeY));
rl.addObjectClassPainter(GoldMineSAConstants.CLS_GOLD, new GoldMineSAPainterGold(sizeX,sizeY));
rl.addObjectClassPainter(GoldMineSAConstants.CLS_MINER, new GoldMineSAPainterMiner(sizeX,sizeY));
return rl;
}
示例7: getStateRenderLayer
import burlap.oomdp.visualizer.StateRenderLayer; //導入依賴的package包/類
public StateRenderLayer getStateRenderLayer() {
StateRenderLayer rl = new StateRenderLayer();
rl.addStaticPainter(new WallPainter(map));
rl.addObjectClassPainter(CLASSLOCATION, new LocationPainter(map));
rl.addObjectClassPainter(CLASSAGENT, new AgentPainter(map));
return rl;
}
示例8: getInvertedPendulumStateRenderLayer
import burlap.oomdp.visualizer.StateRenderLayer; //導入依賴的package包/類
/**
* Returns a {@link StateRenderLayer} object for the {@link InvertedPendulum} domain.
* @return a {@link StateRenderLayer} object for the {@link InvertedPendulum} domain.
*/
public static StateRenderLayer getInvertedPendulumStateRenderLayer(){
StateRenderLayer sl = new StateRenderLayer();
sl.addObjectClassPainter(InvertedPendulum.CLASSPENDULUM, new PendulumObjectPainter());
return sl;
}
示例9: getCartPoleStateRenderLayer
import burlap.oomdp.visualizer.StateRenderLayer; //導入依賴的package包/類
/**
* Returns a StateRenderLayer for cart pole.
* @return a StateRenderLayer for cart pole.
*/
public static StateRenderLayer getCartPoleStateRenderLayer(){
StateRenderLayer rl = new StateRenderLayer();
rl.addObjectClassPainter(CartPoleDomain.CLASSCARTPOLE, new CartPoleObjectPainter());
return rl;
}
示例10: getStateRenderLayer
import burlap.oomdp.visualizer.StateRenderLayer; //導入依賴的package包/類
/**
* Returns a {@link burlap.oomdp.visualizer.StateRenderLayer} for a {@link burlap.domain.singleagent.mountaincar.MountainCar} {@link burlap.oomdp.core.Domain}
* using the hill design/physics defined in the {@link burlap.domain.singleagent.mountaincar.MountainCar.MCPhysicsParams} for visualization
* @param physParams the physics/hill design to be visualized
* @return a {@link burlap.oomdp.visualizer.StateRenderLayer} for a {@link burlap.domain.singleagent.mountaincar.MountainCar} {@link burlap.oomdp.core.Domain}
*/
public static StateRenderLayer getStateRenderLayer(MountainCar.MCPhysicsParams physParams){
StateRenderLayer slr = new StateRenderLayer();
slr.addStaticPainter(new HillPainter(physParams));
slr.addObjectClassPainter(MountainCar.CLASSAGENT, new AgentPainter(physParams));
return slr;
}
示例11: getRenderLayer
import burlap.oomdp.visualizer.StateRenderLayer; //導入依賴的package包/類
/**
* Returns state render layer for a gird world domain with the provided wall map. This method has been deprecated because the domain object is no
* longer necessary. Use the {@link #getRenderLayer(int[][])} method instead.
* @param d the domain of the grid world
* @param map the wall map matrix where 0s indicate it is clear of walls, 1s indicate a full cell wall in that cell, 2s indicate a 1D north wall, 3s indicate a 1D east wall, and 4s indicate a 1D north and east wall.
* @return a grid world domain state render layer
*/
@Deprecated
public static StateRenderLayer getRenderLayer(Domain d, int [][] map){
StateRenderLayer r = new StateRenderLayer();
r.addStaticPainter(new MapPainter(map));
r.addObjectClassPainter(GridWorldDomain.CLASSLOCATION, new LocationPainter(map));
r.addObjectClassPainter(GridWorldDomain.CLASSAGENT, new CellPainter(1, Color.gray, map));
return r;
}
示例12: getVisualizer
import burlap.oomdp.visualizer.StateRenderLayer; //導入依賴的package包/類
/**
* Returns a {@link Visualizer} for the Macro-Cell GridWorld Visualizer and reward weights associated with a set of MacroCell Propositional functions.
* @param map a map of the grid world
* @param propFunctions the macro cell propositional functions
* @param rewardMap the reward weights associated with the propositional function names
* @return a {@link Visualizer}
*/
public static Visualizer getVisualizer(int [][] map, MacroCellGridWorld.InMacroCellPF[] propFunctions, Map<String, Double> rewardMap) {
StateRenderLayer r = getStateRenderLayer(map, propFunctions, rewardMap);
Visualizer v = new Visualizer(r);
return v;
}