ca.nrc.widar.vciMapper
Class Crate
java.lang.Object
ca.nrc.widar.vciMapper.Crate
- All Implemented Interfaces:
- java.io.Serializable
public class Crate
- extends java.lang.Object
- implements java.io.Serializable
In the same fashion as rack, slot and board, a crate can be created:
a) when a new board is detected in the network
b) when a configuration is received for a board that has not been detected in the network.
A Crate is a placeholder for slots and boards, it has no status.
- Author:
- Sonja.Vrcic@nrc.gc.ca
$Rev:: 6078 $: Revision of the last commit
$Author:: svrcic $: Author of the last commit
$Date:: 2012-10-31 11:41:21 -06#$: Date of the last commit
- See Also:
- Serialized Form
-
-

Constructor Summary |
Crate()
|
Crate(int aRackId,
int aCrateId)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UPPER_CRATE_ID
public static final int UPPER_CRATE_ID
- See Also:
- Constant Field Values
LOWER_CRATE_ID
public static final int LOWER_CRATE_ID
- See Also:
- Constant Field Values
MIN_CRATE_ID
public static final int MIN_CRATE_ID
- See Also:
- Constant Field Values
MAX_CRATE_ID
public static final int MAX_CRATE_ID
- See Also:
- Constant Field Values
SLOTS_IN_CRATE
public static final int SLOTS_IN_CRATE
- See Also:
- Constant Field Values
MIN_SLOT_ID
public static final int MIN_SLOT_ID
- See Also:
- Constant Field Values
MAX_SLOT_ID
public static final int MAX_SLOT_ID
- See Also:
- Constant Field Values
Crate
public Crate()
Crate
public Crate(int aRackId,
int aCrateId)
throws ca.nrc.widar.vciMapper.VciMapperException
- Throws:
ca.nrc.widar.vciMapper.VciMapperException
finalize
public void finalize()
- Overrides:
finalize
in class java.lang.Object
getId
public int getId()
getName
public java.lang.String getName()
setName
public void setName(java.lang.String s)
getSlotName
public java.lang.String getSlotName(int i)
setSlotName
public void setSlotName(int slot,
java.lang.String s)
getRackId
public int getRackId()
insertBoard
public void insertBoard(Board aBoard)
- Insert board into specified slot
getBoard
public Board getBoard(int aSlotId)
getBoardsAsList
public java.util.List<Board> getBoardsAsList()
slotIsEmpty
public boolean slotIsEmpty(int aSlotId)
removeBoard
public void removeBoard(int aSlotId)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
National Radio Astronomy Observatory