Package org.bidib.wizard.mvc.ping.model
Class NodePingModel
- java.lang.Object
-
- com.jgoodies.common.bean.Bean
-
- com.jgoodies.binding.beans.Model
-
- org.bidib.wizard.mvc.ping.model.NodePingModel
-
- All Implemented Interfaces:
com.jgoodies.common.bean.ObservableBean,com.jgoodies.common.bean.ObservableBean2,Serializable
public class NodePingModel extends com.jgoodies.binding.beans.Model- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_LAST_PINGstatic StringPROPERTY_NODE_LABELstatic StringPROPERTY_NODE_PING_STATUSstatic StringPROPERTY_PING_INTERVAL
-
Constructor Summary
Constructors Constructor Description NodePingModel(org.bidib.wizard.api.model.NodeInterface node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)voidfreeNode()intgetData()longgetLastPing()intgetNextIncData()org.bidib.wizard.api.model.NodeInterfacegetNode()StringgetNodeLabel()NodePingStategetNodePingState()IntegergetPingInterval()inthashCode()StringprepareNodeLabel()voidregisterNode()voidsetData(int data)voidsetLastPing(long lastPing)voidsetNodeLabel(String nodeLabel)voidsetNodePingState(NodePingState nodePingState)voidsetPingInterval(Integer pingInterval)StringtoString()-
Methods inherited from class com.jgoodies.binding.beans.Model
createPropertyChangeSupport, firePropertyChange
-
Methods inherited from class com.jgoodies.common.bean.Bean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
-
-
-
Field Detail
-
PROPERTY_NODE_PING_STATUS
public static final String PROPERTY_NODE_PING_STATUS
- See Also:
- Constant Field Values
-
PROPERTY_PING_INTERVAL
public static final String PROPERTY_PING_INTERVAL
- See Also:
- Constant Field Values
-
PROPERTY_LAST_PING
public static final String PROPERTY_LAST_PING
- See Also:
- Constant Field Values
-
PROPERTY_NODE_LABEL
public static final String PROPERTY_NODE_LABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
registerNode
public void registerNode()
-
freeNode
public void freeNode()
-
getNode
public org.bidib.wizard.api.model.NodeInterface getNode()
- Returns:
- the node
-
getNodePingState
public NodePingState getNodePingState()
- Returns:
- the nodePingState
-
setNodePingState
public void setNodePingState(NodePingState nodePingState)
- Parameters:
nodePingState- the nodePingState to set
-
setNodeLabel
public void setNodeLabel(String nodeLabel)
- Parameters:
nodeLabel- the node label to set
-
getNodeLabel
public String getNodeLabel()
- Returns:
- the node label
-
getPingInterval
public Integer getPingInterval()
- Returns:
- the pingInterval in milliseconds
-
setPingInterval
public void setPingInterval(Integer pingInterval)
- Parameters:
pingInterval- the pingInterval in milliseconds to set
-
getLastPing
public long getLastPing()
- Returns:
- the lastPing
-
setLastPing
public void setLastPing(long lastPing)
- Parameters:
lastPing- the lastPing to set
-
setData
public void setData(int data)
-
getData
public int getData()
-
getNextIncData
public int getNextIncData()
-
prepareNodeLabel
public String prepareNodeLabel()
-
-