本文整理汇总了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;
}
示例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();
}
示例3: ARMArchitecture
import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public ARMArchitecture(Machine machine) {
this.machine = machine;
}
示例4: OCMOS
import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public OCMOS(Machine machine) {
this.machine = machine;
}
示例5: PseudoArchitecture
import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
/** The constructor must have exactly this signature. */
public PseudoArchitecture(Machine machine) {
this.machine = machine;
}
示例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);
}
示例7: getMachine
import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public Machine getMachine() {
return machine;
}
示例8: MachineNode
import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public MachineNode(Machine machine, String address) {
super(machine, address);
}
示例9: SimGPU
import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public SimGPU(Machine machine, String address) {
super(machine, address);
}
示例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;
}
示例11: SimKeyboard
import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public SimKeyboard(Machine machine, String address) {
super(machine, address);
}
示例12: SimComponent
import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public SimComponent(Machine machine, String address) {
this.machine = machine;
this.address = address;
}
示例13: JARMROMDevArchitecture
import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
public JARMROMDevArchitecture(Machine machine) {
super(machine);
}
示例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);
示例15: machine
import li.cil.oc.api.machine.Machine; //导入依赖的package包/类
/**
* The machine currently hosted by this server.
*/
Machine machine();