package org.openlcb.cdi;
/**
* Interface representing CDI information.
*
* Generally, the CDI XML will be read into an
* object implementing this interface.
*
* @author Bob Jacobsen Copyright 2011
* @version $Revision: -1 $
*/
public interface CdiRep {
public static interface Identification {
public String getManufacturer();
public String getModel();
public String getHardwareVersion();
public String getSoftwareVersion();
public Map getMap();
}
public Identification getIdentification();
public java.util.List getSegments();
public static interface Segment {
public int getSpace();
public int getOrigin();
public java.util.List- getItems();
public String getName();
public String getDescription();
public Map getMap();
}
public static interface Item {
public String getName();
public String getDescription();
public Map getMap();
public int getOffset();
}
public static interface Group extends Item {
public java.util.List
- getItems();
public int getReplication();
public String getRepName();
}
public static interface Map {
public String getEntry(String key);
public String getKey(String entry);
public java.util.List getKeys();
public java.util.List getValues();
}
public static interface EventID extends Item {
}
public static interface IntegerRep extends Item {
public int getDefault();
public int getMin();
public int getMax();
public int getSize();
}
public static interface BitRep extends Item {
public boolean getDefault();
public int getSize();
}
public static interface StringRep extends Item { // "String" causes too many name conflicts
public int getSize();
}
}