Package jmri.jmrix.can.cbus.node
Class CbusBasicNodeEvent
- java.lang.Object
-
- jmri.jmrix.can.cbus.CbusEventDataElements
-
- jmri.jmrix.can.cbus.CbusEvent
-
- jmri.jmrix.can.cbus.node.CbusBasicNodeEvent
-
- Direct Known Subclasses:
CbusNodeEvent
public class CbusBasicNodeEvent extends CbusEvent
Base Class of CbusNodeEvent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrix.can.cbus.CbusEventDataElements
CbusEventDataElements.EvState
-
-
Constructor Summary
Constructors Constructor Description CbusBasicNodeEvent(CanSystemConnectionMemo memo, int nn, int en, int thisnode, int index)
Set the value of the event variable array by index
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getIndex()
Get the index number of this event on a nodeint
getParentNn()
Returns the parent host node of the node eventjava.lang.String
getTempFcuNodeName()
Get the temporary node nameint
hashCode()
protected void
notifyModel()
protected void
setEditTableModel(CbusNodeSingleEventTableDataModel model)
void
setIndex(int index)
Set the index number of this event on a nodevoid
setTempFcuNodeName(java.lang.String tempName)
Set a temporary node name-
Methods inherited from class jmri.jmrix.can.cbus.CbusEvent
getEn, getName, getNn, getNodeName, getState, matches, sendEvent, sendOff, sendOn, sendRequest, setEn, setName, setNameIfNoName, setNn, setState, toString
-
Methods inherited from class jmri.jmrix.can.cbus.CbusEventDataElements
getCanMessage, getData, getEvState, getJmriString, getNumElements, getNumEventDataElements, setData, setDataFromFrame, setNumElements
-
-
-
-
Constructor Detail
-
CbusBasicNodeEvent
public CbusBasicNodeEvent(CanSystemConnectionMemo memo, int nn, int en, int thisnode, int index)
Set the value of the event variable array by index- Parameters:
memo
- CAN System Connectionnn
- Event node Numberen
- Event event or device numberthisnode
- Host node numberindex
- number assigned by node, -1 if unknown
-
-
Method Detail
-
setEditTableModel
protected void setEditTableModel(CbusNodeSingleEventTableDataModel model)
-
notifyModel
protected void notifyModel()
-
getParentNn
public int getParentNn()
Returns the parent host node of the node event- Returns:
- decimal node number
-
setIndex
public final void setIndex(int index)
Set the index number of this event on a nodeIndex number not valid after any event has been written to or deleted from the node
- Parameters:
index
- number, -1 if unset
-
getIndex
public final int getIndex()
Get the index number of this event on a node- Returns:
- index number, -1 if unset
-
setTempFcuNodeName
public final void setTempFcuNodeName(java.lang.String tempName)
Set a temporary node name- Parameters:
tempName
- the name to use
-
getTempFcuNodeName
public final java.lang.String getTempFcuNodeName()
Get the temporary node name- Returns:
- the name
-
equals
public boolean equals(java.lang.Object o)
Custom method to compare Node Number and Event Number.
-
-