unbbayes.prs.id
Class UtilityNode

java.lang.Object
  extended by unbbayes.prs.Node
      extended by unbbayes.prs.id.UtilityNode
All Implemented Interfaces:
Serializable, Comparable<Node>, IRandomVariable, INode

public class UtilityNode
extends Node
implements IRandomVariable, Serializable

This class represents the utility node.

Author:
Michael Onishi, Rommel Carvalho
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class unbbayes.prs.Node
Node.NodeNameChangedEvent, Node.NodeNameChangedListener, Node.SetList<E>
 
Field Summary
 
Fields inherited from class unbbayes.prs.Node
backColor, CONTINUOUS_NODE_TYPE, DECISION_NODE_TYPE, DEFAULT_SIZE, DESCRIPTION_TYPE, DISPLAY_MODE_BAR, DISPLAY_MODE_ELLIPSE, EXPLANATION_TYPE, infoestados, label, mean, name, nodeNameChangedListenerList, parents, position, PROBABILISTIC_NODE_TYPE, size, sizeIsVariable, sizeVariable, standardDeviation, states, UTILITY_NODE_TYPE
 
Constructor Summary
UtilityNode()
          Constructs a UtilityNode with an initialized table and an incremented DrawElement.
 
Method Summary
 void appendState(String state)
          NÔøΩo faz nada ao se tentar inserir um estado, pois variÔøΩveis de utilidade sÔøΩ aceitam 1 estado.
 PotentialTable getProbabilityFunction()
          Gets the tabelaPot attribute of the TVU object
static Color getStaticColor()
          Get the node's color.
 int getType()
          Method to extract node's type.
 void removeLastState()
          NÔøΩo faz nada ao se tentar inserir um estado, pois variÔøΩveis de utilidade sÔøΩ aceitam 1 estado.
static void setStaticColor(int rgb)
          Set the node's color.
 
Methods inherited from class unbbayes.prs.Node
addChild, addChildNode, addExplanationPhrase, addNodeNameChangedListener, addParent, addParentNode, atualizatamanhoinfoestados, clearAdjacents, compareTo, equals, getAdjacentNodes, getAdjacents, getChildNodes, getChildren, getColor, getDefaultHeight, getDefaultSize, getDefaultWidth, getDescription, getDisplayMode, getExplanationDescription, getExplanationPhrase, getHeight, getInformationType, getLabel, getMean, getName, getParentNodes, getParents, getPhrasesMap, getPosition, getSize, getStandardDeviation, getStateAt, getStatesSize, getWidth, hasState, isChildOf, isParentOf, isPointInDrawableArea, isSelected, makeAdjacents, nameChanged, removeChild, removeChildNode, removeNodeNameChangedListener, removeParent, removeParentNode, removeStateAt, setAdjacents, setChildNodes, setChildren, setColor, setDescription, setDisplayMode, setExplanationDescription, setInformationType, setLabel, setMean, setName, setParentNodes, setParents, setPhrasesMap, setPosition, setSelected, setSize, setSizeIsVariable, setSizeVariable, setStandardDeviation, setStateAt, setStates, toString, updateLabel
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UtilityNode

public UtilityNode()
Constructs a UtilityNode with an initialized table and an incremented DrawElement.

Method Detail

getType

public int getType()
Description copied from interface: INode
Method to extract node's type. It is free to use any value as any meaning.

Specified by:
getType in interface INode
Returns:

appendState

public void appendState(String state)
NÔøΩo faz nada ao se tentar inserir um estado, pois variÔøΩveis de utilidade sÔøΩ aceitam 1 estado.

Specified by:
appendState in interface INode
Overrides:
appendState in class Node
Parameters:
state - Name of the state to be added.

removeLastState

public void removeLastState()
NÔøΩo faz nada ao se tentar inserir um estado, pois variÔøΩveis de utilidade sÔøΩ aceitam 1 estado.

Specified by:
removeLastState in interface INode
Overrides:
removeLastState in class Node

getProbabilityFunction

public PotentialTable getProbabilityFunction()
Gets the tabelaPot attribute of the TVU object

Specified by:
getProbabilityFunction in interface IRandomVariable
Returns:
The tabelaPot value

getStaticColor

public static Color getStaticColor()
Get the node's color.

Returns:
The node's color.

setStaticColor

public static void setStaticColor(int rgb)
Set the node's color.

Parameters:
rgb - The node's RGB color.


Copyright © 2001-2010 University of Brasilia - UnB. All Rights Reserved.