當前位置: 首頁>>代碼示例>>Java>>正文


Java StateRenderLayer類代碼示例

本文整理匯總了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;
}
 
開發者ID:f-leno,項目名稱:DOO-Q_BRACIS2016,代碼行數:10,代碼來源:ExampleGridWorld.java

示例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;
}
 
開發者ID:f-leno,項目名稱:DOO-Q_BRACIS2016,代碼行數:17,代碼來源:BlockDudeVisualizer.java

示例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;
}
 
開發者ID:f-leno,項目名稱:DOO-Q_BRACIS2016,代碼行數:17,代碼來源:LLVisualizer.java

示例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;
}
 
開發者ID:f-leno,項目名稱:DOO-Q_BRACIS2016,代碼行數:16,代碼來源:GridWorldVisualizer.java

示例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;
}
 
開發者ID:f-leno,項目名稱:DOO-Q_BRACIS2016,代碼行數:17,代碼來源:MacroCellVisualizer.java

示例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;
}
 
開發者ID:f-leno,項目名稱:DOO-Q_BRACIS2016,代碼行數:8,代碼來源:GoldMineSA.java

示例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;
}
 
開發者ID:juanjose49,項目名稱:omscs-cs7641-machine-learning-assignment-4,代碼行數:9,代碼來源:BasicGridWorld.java

示例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;	
}
 
開發者ID:f-leno,項目名稱:DOO-Q_BRACIS2016,代碼行數:10,代碼來源:InvertedPendulumVisualizer.java

示例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;
}
 
開發者ID:f-leno,項目名稱:DOO-Q_BRACIS2016,代碼行數:10,代碼來源:CartPoleVisualizer.java

示例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;

}
 
開發者ID:f-leno,項目名稱:DOO-Q_BRACIS2016,代碼行數:16,代碼來源:MountainCarVisualizer.java

示例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;
	
}
 
開發者ID:f-leno,項目名稱:DOO-Q_BRACIS2016,代碼行數:20,代碼來源:GridWorldVisualizer.java

示例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;
}
 
開發者ID:f-leno,項目名稱:DOO-Q_BRACIS2016,代碼行數:14,代碼來源:MacroCellVisualizer.java


注:本文中的burlap.oomdp.visualizer.StateRenderLayer類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。