jmri.jmrix.jinput
Class UsbNode

Show UML class diagram
java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by jmri.jmrix.jinput.UsbNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode

public class UsbNode
extends DefaultMutableTreeNode

UsbNode represents the USB controllers or component.

Generally accessed via the TreeModel.

Can be connected to a JMRI Sensor or Memory.

See Also:
Serialized Form

Field Summary
(package private)  String attachedMemory
           
(package private)  String attachedSensor
           
(package private)  net.java.games.input.Component component
           
(package private)  net.java.games.input.Controller controller
           
(package private) static org.slf4j.Logger log
           
(package private)  String name
           
(package private)  float val
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
UsbNode(String name, net.java.games.input.Controller controller, net.java.games.input.Component component)
           
 
Method Summary
 boolean equals(Object a)
           
 String getAttachedMemory()
           
 String getAttachedSensor()
           
 net.java.games.input.Component getComponent()
           
 net.java.games.input.Controller getController()
           
 String getName()
           
static UsbNode getNode(String name, net.java.games.input.Controller controller, net.java.games.input.Component component)
          Get a specific node.
 float getValue()
           
 int hashCode()
           
 void setAttachedMemory(String memory)
           
 void setAttachedSensor(String sensor)
           
 void setValue(float val)
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

String name

controller

net.java.games.input.Controller controller

component

net.java.games.input.Component component

val

float val

attachedSensor

String attachedSensor

attachedMemory

String attachedMemory

log

static org.slf4j.Logger log
Constructor Detail

UsbNode

UsbNode(String name,
        net.java.games.input.Controller controller,
        net.java.games.input.Component component)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getController

public net.java.games.input.Controller getController()

getComponent

public net.java.games.input.Component getComponent()

equals

public boolean equals(Object a)
Overrides:
equals in class Object

setValue

public void setValue(float val)

getValue

public float getValue()

setAttachedSensor

public void setAttachedSensor(String sensor)

getAttachedSensor

public String getAttachedSensor()

setAttachedMemory

public void setAttachedMemory(String memory)

getAttachedMemory

public String getAttachedMemory()

getName

public String getName()

getNode

public static UsbNode getNode(String name,
                              net.java.games.input.Controller controller,
                              net.java.games.input.Component component)
Get a specific node. This is used instead of a ctor to ensure that node objects for a given USB object are unique.



Copyright © 1997-2014 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads