Package nl.rrd.wool.model
Class WoolNodeBody.CommandSegment
- java.lang.Object
-
- nl.rrd.wool.model.WoolNodeBody.Segment
-
- nl.rrd.wool.model.WoolNodeBody.CommandSegment
-
- Enclosing class:
- WoolNodeBody
public static class WoolNodeBody.CommandSegment extends WoolNodeBody.Segment
-
-
Constructor Summary
Constructors Constructor Description CommandSegment(WoolCommand command)
-
Method Summary
Modifier and Type Method Description WoolReplyfindReplyById(int replyId)Tries to find a reply with the specified ID within this segment.WoolCommandgetCommand()voidgetReadVariableNames(Set<String> varNames)Retrieves all variable names that are read in this segment and adds them to the specified set.voidgetWriteVariableNames(Set<String> varNames)Retrieves all variable names that are written in this segment and adds them to the specified set.StringtoString()
-
-
-
Constructor Detail
-
CommandSegment
public CommandSegment(WoolCommand command)
-
-
Method Detail
-
getCommand
public WoolCommand getCommand()
-
findReplyById
public WoolReply findReplyById(int replyId)
Description copied from class:WoolNodeBody.SegmentTries to find a reply with the specified ID within this segment. If no such reply is found, this method returns null.- Specified by:
findReplyByIdin classWoolNodeBody.Segment- Parameters:
replyId- the reply ID- Returns:
- the reply or null
-
getReadVariableNames
public void getReadVariableNames(Set<String> varNames)
Description copied from class:WoolNodeBody.SegmentRetrieves all variable names that are read in this segment and adds them to the specified set.- Specified by:
getReadVariableNamesin classWoolNodeBody.Segment- Parameters:
varNames- the set to which the variable names are added
-
getWriteVariableNames
public void getWriteVariableNames(Set<String> varNames)
Description copied from class:WoolNodeBody.SegmentRetrieves all variable names that are written in this segment and adds them to the specified set.- Specified by:
getWriteVariableNamesin classWoolNodeBody.Segment- Parameters:
varNames- the set to which the variable names are added
-
-