当前位置: 首页>>代码示例>>Java>>正文


Java Machine类代码示例

本文整理汇总了Java中li.cil.oc.api.machine.Machine的典型用法代码示例。如果您正苦于以下问题:Java Machine类的具体用法?Java Machine怎么用?Java Machine使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Machine类属于li.cil.oc.api.machine包,在下文中一共展示了Machine类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SimScreen

import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public SimScreen(Machine machine, String address, int width, int height, int bits) {
	super(machine, address);

	this.width = width;
	this.height = height;
	this.bits = bits;
}
 
开发者ID:SolraBizna,项目名称:jarm,代码行数:8,代码来源:SimScreen.java

示例2: SimFilesystem

import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public SimFilesystem(Machine machine, String address, File basePath, boolean writable) {
	super(machine, address);

	this.basePath = basePath;
	this.writable = writable;
	/* we generate some bits of a random UUID based on the hash code of the absolute path
	 * this way, we'll generate the same bits for the same filesystem every time
	 * AND the random parts are relatively high up, lexically speaking
	 */
	this.label = basePath.getName();
}
 
开发者ID:SolraBizna,项目名称:jarm,代码行数:12,代码来源:SimFilesystem.java

示例3: ARMArchitecture

import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public ARMArchitecture(Machine machine) {
    this.machine = machine;
}
 
开发者ID:LeshaInc,项目名称:openarch,代码行数:4,代码来源:ARMArchitecture.java

示例4: OCMOS

import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public OCMOS(Machine machine) {
	this.machine = machine;
}
 
开发者ID:SolraBizna,项目名称:j6502,代码行数:4,代码来源:OCMOS.java

示例5: PseudoArchitecture

import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
/** The constructor must have exactly this signature. */
public PseudoArchitecture(Machine machine) {
    this.machine = machine;
}
 
开发者ID:iamgreaser,项目名称:ocmips,代码行数:5,代码来源:PseudoArchitecture.java

示例6: createComponent

import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
@Override
public SimComponent createComponent(Machine machine) {
	return new SimFilesystem(machine, address == null ? String.format(filesystemAddressFormatString, basepath.hashCode()) : address, new File(basepath), writable);
}
 
开发者ID:SolraBizna,项目名称:jarm,代码行数:5,代码来源:HardwareDefinition.java

示例7: getMachine

import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public Machine getMachine() {
	return machine;
}
 
开发者ID:SolraBizna,项目名称:jarm,代码行数:4,代码来源:CP3.java

示例8: MachineNode

import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public MachineNode(Machine machine, String address) {
	super(machine, address);
}
 
开发者ID:SolraBizna,项目名称:jarm,代码行数:4,代码来源:FakeMachine.java

示例9: SimGPU

import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public SimGPU(Machine machine, String address) {
	super(machine, address);
}
 
开发者ID:SolraBizna,项目名称:jarm,代码行数:4,代码来源:SimGPU.java

示例10: SimEEPROM

import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public SimEEPROM(Machine machine,String address, ROMRegion rom, SRAMRegion sram) {
	super(machine, address);

	this.rom = rom;
	this.sram = sram;
}
 
开发者ID:SolraBizna,项目名称:jarm,代码行数:7,代码来源:SimEEPROM.java

示例11: SimKeyboard

import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public SimKeyboard(Machine machine, String address) {
	super(machine, address);
}
 
开发者ID:SolraBizna,项目名称:jarm,代码行数:4,代码来源:SimKeyboard.java

示例12: SimComponent

import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public SimComponent(Machine machine, String address) {
	this.machine = machine;
	this.address = address;
}
 
开发者ID:SolraBizna,项目名称:jarm,代码行数:5,代码来源:SimComponent.java

示例13: JARMROMDevArchitecture

import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public JARMROMDevArchitecture(Machine machine) {
	super(machine);
}
 
开发者ID:SolraBizna,项目名称:jarm,代码行数:4,代码来源:JARMROMDevArchitecture.java

示例14: create

import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
/**
 * Creates a new machine for the specified host.
 * <p/>
 * You are responsible for calling update and save / load functions on the
 * machine for it to work correctly.
 *
 * @param host the owner object of the machine, providing context.
 * @return the newly created machine.
 * @throws IllegalArgumentException if the specified architecture is invalid.
 */
Machine create(MachineHost host);
 
开发者ID:Herobone,项目名称:HeroUtils,代码行数:12,代码来源:MachineAPI.java

示例15: machine

import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
/**
 * The machine currently hosted by this server.
 */
Machine machine();
 
开发者ID:amadornes,项目名称:Framez,代码行数:5,代码来源:Server.java


注:本文中的li.cil.oc.api.machine.Machine类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。