Emulator.Components
Class Component

java.lang.Object
  extended by Emulator.Components.Component
All Implemented Interfaces:
Constants
Direct Known Subclasses:
ALU, Bus, Flag, InstructionTimer, Memory, Register

public abstract class Component
extends java.lang.Object
implements Constants

*********************** Created By: Yuval Tzur Date: 14/12/12 Time: 14:44 Description: Component is an abstract class that defines the basic details of a component. Each class defining an emulated hardware component will inherit from this class. Basic details inherited from this class are ID and Name. Each component type will have its numerical ID that will be defined as a Global identifier for its name. ***********************


Field Summary
 
Fields inherited from interface Emulator.Global.Constants
_0, _1, AC, ADDR_REGISTER_SIZE, ALU, ALU_IN0, ALU_IN1, ALU_OUT, AR, BUS, BUS_SIZE, DATA_COMPONENTS, DATA_REGISTER_SIZE, DATA_TABLE_SIZE, DR, E, FGI, FGO, I, IEN, INPR, IO_REGISTER_SIZE, IR, M, MEMORY_SIZE, OUTR, PC, R, S, TARGET_REACHED, TIMEOUT, TIMER, TIMER_LIMIT, TR, TR0, TR1, UNREACHABLE
 
Constructor Summary
Component()
           
 
Method Summary
 int get_id()
           
 java.lang.String get_name()
           
protected  void set_id(int id)
           
protected  void set_name(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Component

public Component()
Method Detail

set_id

protected void set_id(int id)
               throws NegativeIdException
Throws:
NegativeIdException

set_name

protected void set_name(java.lang.String name)

get_id

public int get_id()

get_name

public java.lang.String get_name()