Package net.sourceforge.jarduino.message
Class ArduinoMsgFilter
java.lang.Object
net.sourceforge.jarduino.message.ArduinoMsgFilter
public class ArduinoMsgFilter extends Object
Message selection.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ArduinoMsgFilter()Constructor. -
Method Summary
Modifier and Type Method Description booleanhasSelected()Does the map have any selected entries.booleanisBuilt(String pId)Is the message selected for build?booleanisEmpty()Is the selection empty?booleanisParsed(String pId)Is the message selected for parse?booleanisSelected(String pId)Is the message selected?booleanpublicFields()Are fields public?voidremoveMessage(String pId)Remove message.voidresetSelection(ArduinoNamedObject pObject)Reset the selection for a new object.voidresetSelection(ArduinoNode pNode)Match the selection to a node.voidresetSelection(ArduinoSystem pSystem)Reset the selection for a new system.voidselectMessage(String pId)Select message.intsize()Obtain the number of messages.voidtoggleFlag(String pId, int pFlag)Toggle the flag for the message.voidtogglePublicFields()toggle public fields.
-
Field Details
-
PARSEMSG
public static final int PARSEMSGParse message indication.- See Also:
- Constant Field Values
-
BUILDMSG
public static final int BUILDMSGBuild message indication.- See Also:
- Constant Field Values
-
-
Constructor Details
-
ArduinoMsgFilter
public ArduinoMsgFilter()Constructor.
-
-
Method Details
-
size
public int size()Obtain the number of messages.- Returns:
- the number of messages
-
isEmpty
public boolean isEmpty()Is the selection empty?- Returns:
- true/false
-
publicFields
public boolean publicFields()Are fields public?- Returns:
- true/false
-
togglePublicFields
public void togglePublicFields()toggle public fields. -
hasSelected
public boolean hasSelected()Does the map have any selected entries.- Returns:
- true/false
-
isSelected
Is the message selected?- Parameters:
pId- the messageId- Returns:
- true/false
-
isParsed
Is the message selected for parse?- Parameters:
pId- the messageId- Returns:
- true/false
-
isBuilt
Is the message selected for build?- Parameters:
pId- the messageId- Returns:
- true/false
-
toggleFlag
Toggle the flag for the message.- Parameters:
pId- the messageIdpFlag- the flag
-
selectMessage
Select message.- Parameters:
pId- the messageId
-
removeMessage
Remove message.- Parameters:
pId- the messageId
-
resetSelection
Reset the selection for a new object.- Parameters:
pObject- the object
-
resetSelection
Reset the selection for a new system.- Parameters:
pSystem- the system
-
resetSelection
Match the selection to a node.- Parameters:
pNode- the node
-