File: CorrelateMediaCmd.java

package info (click to toggle)
gpsprune 26.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,824 kB
  • sloc: java: 52,154; sh: 25; makefile: 21; python: 15
file content (24 lines) | stat: -rw-r--r-- 669 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package tim.prune.cmd;

import tim.prune.data.DataPoint;
import java.util.List;

/**
 * Command to correlate either photos or audio objects
 */
public class CorrelateMediaCmd extends CompoundCommand
{
	/**
	 * Constructor
	 * @param inLinkType specifying photos, audios or both
	 * @param inPoints points to append
	 * @param inConnections links between points and media
	 */
	public CorrelateMediaCmd(MediaLinkType inLinkType, List<DataPoint> inPoints, List<PointAndMedia> inConnections)
	{
		if (!inPoints.isEmpty()) {
			addCommand(new AppendRangeCmd(inPoints));
		}
		addCommand(new ConnectMultipleMediaCmd(inLinkType, inConnections));
	}
}