public static class ReverseWayAction.ReverseWayResult extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Way |
newWay |
private Command |
reverseCommand |
private java.util.Collection<Command> |
tagCorrectionCommands |
Constructor and Description |
---|
ReverseWayResult(Way newWay,
java.util.Collection<Command> tagCorrectionCommands,
Command reverseCommand)
Create a new
ReverseWayAction.ReverseWayResult |
Modifier and Type | Method and Description |
---|---|
Command |
getAsSequenceCommand()
Gets a single sequence command for reversing this way including changing the tags
|
java.util.Collection<Command> |
getCommands()
Gets the commands that will be required to do a full way reversal including changing the tags
|
Way |
getNewWay()
Gets the new way object
|
Command |
getReverseCommand()
Gets the basic reverse command that only changes the order of the nodes.
|
java.util.Collection<Command> |
getTagCorrectionCommands()
Gets the command to change the tags of the way
|
private final java.util.Collection<Command> tagCorrectionCommands
private final Command reverseCommand
public ReverseWayResult(Way newWay, java.util.Collection<Command> tagCorrectionCommands, Command reverseCommand)
ReverseWayAction.ReverseWayResult
newWay
- The new way primitivetagCorrectionCommands
- The commands to correct the tagsreverseCommand
- The command to reverse the waypublic java.util.Collection<Command> getCommands()
public Command getAsSequenceCommand()
public Command getReverseCommand()
public java.util.Collection<Command> getTagCorrectionCommands()