|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.emulator.signal.ChannelModel
public abstract class ChannelModel
Parent of all ChannelModels. All the ChannelModels inherit from this basic model. Contains common functionality as well as methods that need to be implemented by the subclasses.
PathBasedChannelModel
Field Summary | |
---|---|
private static HashMap |
cmTypeToClass
|
protected String |
name
|
Constructor Summary | |
---|---|
protected |
ChannelModel()
Constructor. |
Method Summary | |
---|---|
String |
getName()
Returns the name of the ChannelModel. |
static String |
getType()
Returns the type of the ChannelModel. |
abstract void |
init()
|
static boolean |
isValidChannelModelType(String type)
Tests the validity of a channel model's type. |
static ChannelModel |
newCMInstance(String type)
Creates a new instance of a channel model object given the channel model's type. |
static ChannelModel |
parse(Channel channel,
Element channelModelDef)
|
protected abstract void |
parseSubClass(Channel channel,
Element channelModelDef)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
private static HashMap cmTypeToClass
Constructor Detail |
---|
protected ChannelModel()
Method Detail |
---|
public static boolean isValidChannelModelType(String type)
public static ChannelModel newCMInstance(String type)
public static String getType()
public static ChannelModel parse(Channel channel, Element channelModelDef)
protected abstract void parseSubClass(Channel channel, Element channelModelDef)
public abstract void init()
public String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |