public class MergeSpeciesCommand extends Command
Modifier and Type | Field and Description |
---|---|
protected String |
newSpecyName |
protected String[] |
speciesNames |
commandUUID, comment
Constructor and Description |
---|
MergeSpeciesCommand() |
Modifier and Type | Method and Description |
---|---|
void |
doCommand(Project project,
AbstractDataContainer container)
Do command on project.
|
void |
fromStringRepresentation(String representation)
Init command from string representation.
|
String |
getDescription(Project project,
AbstractDataContainer container)
Return human readable string for ui display (used in selection replay,
and undo redo commands).
|
String |
getLogString(Project project,
AbstractDataContainer container)
Return human readable string for log output.
|
String |
getNewSpecyName() |
String[] |
getSpeciesNames() |
protected boolean |
isNotAvailableData(String data)
Return true if a value
|
protected Project |
mergeCatch(Project project,
AbstractDataContainer container,
String newSpecyName,
String... speciesNames)
Fusion d'especes dans les données de taille.
|
protected String[] |
mergeCatches(String[] tuple1,
String[] tuple2)
Merge deux lines des catch.
|
protected Project |
mergeLength(Project project,
AbstractDataContainer container,
String newSpecyName,
String... speciesNames)
Fusion d'espece dans les données de captures.
|
protected String[] |
mergeLengths(String[] tuple1,
String[] tuple2)
Merge deux lines des catch.
|
void |
setNewSpecyName(String newSpecyName) |
void |
setSpeciesNames(String[] speciesNames) |
String |
toString() |
String |
toStringRepresentation()
Get command argument string representation.
|
void |
undoCommand(Project project,
AbstractDataContainer container)
Undo command on project.
|
getCommandUUID, getComment, setCommandUUID, setComment
protected String newSpecyName
protected String[] speciesNames
public String getNewSpecyName()
public void setNewSpecyName(String newSpecyName)
public String[] getSpeciesNames()
public void setSpeciesNames(String[] speciesNames)
public void doCommand(Project project, AbstractDataContainer container) throws CoserBusinessException
Command
doCommand
in class Command
project
- projectcontainer
- containerCoserBusinessException
public void undoCommand(Project project, AbstractDataContainer container) throws CoserBusinessException
Command
undoCommand
in class Command
project
- projectcontainer
- containerCoserBusinessException
protected Project mergeLength(Project project, AbstractDataContainer container, String newSpecyName, String... speciesNames)
project
- projectcontainer
- data containernewSpecyName
- new specy name (after merge)speciesNames
- species name to mergeprotected String[] mergeLengths(String[] tuple1, String[] tuple2)
tuple1
et retourné.
Somme les "Nombre" et "Poids"tuple1
- first tuple to mergetuple2
- second tuple to mergeprotected boolean isNotAvailableData(String data)
data
- data value to checktrue
if value is empty or NAprotected Project mergeCatch(Project project, AbstractDataContainer container, String newSpecyName, String... speciesNames)
project
- projectcontainer
- data containernewSpecyName
- new specy name (after merge)speciesNames
- species name to mergeprotected String[] mergeCatches(String[] tuple1, String[] tuple2)
tuple1
et retourné.
Somme les "Nombre" et "Poids"tuple1
- tuple1tuple2
- tuple2public String toStringRepresentation()
Command
toStringRepresentation
in class Command
public void fromStringRepresentation(String representation)
Command
fromStringRepresentation
in class Command
representation
- string command representationpublic String getLogString(Project project, AbstractDataContainer container)
Command
getLogString
in class Command
project
- used to convert species codecontainer
- rarement utile, mais dans certains cas, sert a avoir les
vrais valeur de champs au lieu des noms techniquespublic String getDescription(Project project, AbstractDataContainer container)
Command
getDescription
in class Command
project
- used to convert species codecontainer
- rarement utile, mais dans certains cas, sert a avoir les
vrais valeur de champs au lieu des noms techniquesCopyright © 2010–2015 Ifremer. All rights reserved.