net.sourceforge.frcsimulator.internals
Class CRIOModule

java.lang.Object
  extended by net.sourceforge.frcsimulator.internals.CRIOModule
All Implemented Interfaces:
FrcBotSimComponent

public class CRIOModule
extends java.lang.Object
implements FrcBotSimComponent

Used by the simulator to represent a hardware module.

Author:
benjamin

Constructor Summary
CRIOModule(int type)
          Creates a module of the given type to be used by the CRIO class.
 
Method Summary
 FrcBotSimProperties getSimProperties()
          Gets the properties of this module that can be parsed by the simulator or an external program.
 int getType()
          Gets the type of this module as specified in the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRIOModule

public CRIOModule(int type)
           throws ModuleException
Creates a module of the given type to be used by the CRIO class.

Parameters:
type - The type of module to be created: Analog, Digital, or Solenoid.

Throws:
ModuleException
Method Detail

getType

public int getType()
Gets the type of this module as specified in the constructor.

Returns:
The type of this module.

getSimProperties

public FrcBotSimProperties getSimProperties()
Gets the properties of this module that can be parsed by the simulator or an external program.

Specified by:
getSimProperties in interface FrcBotSimComponent
Returns:
The FrcBotSimProperties of this module.