<!--
<!DOCTYPE program SYSTEM "http://www.doc.ic.ac.uk/project/2004/362/g04362341M/DTD/program.dtd">
-->
<program>
	<argument-model>
		<arguments>
			
			<argument>
				<name>Use-Input-Lists</name>
				<help>
					<overview>When this argument is set, Move-Files will take a list of files to move from input nodes instead of arguments</overview>
				</help>
				<is-compulsary/>
				<bool-argument>
				    <false-children>
				        <child>From-File</child>
				        <child>To-File</child>
				    </false-children>
				</bool-argument>
			</argument>
			
			<argument>
				<name>From-File</name>
				<help>
					<overview>Source file to move</overview>
				</help>
				<is-compulsary/>
				<text-argument>
					<initial></initial>
					<is-file-arg />
				</text-argument>
			</argument>
			
			<argument>
				<name>To-File</name>
				<help>
					<overview>Destination to move file to</overview>
				</help>
				<is-compulsary/>
				<text-argument>
					<initial></initial>
					<is-file-arg />
				</text-argument>
			</argument>
			
		</arguments>
		
		<mappings>
			
			<mapping>
				<conditions>
					<condition>	
						<target>Use-Input-Lists</target>
						<bool-true-condition>
						</bool-true-condition>
					</condition>
				</conditions>
				<input-pipes>
					<pipe>
						<name>From-Files</name>
						<type>uk.ac.ic.doc.kevlar.core.types.textType.IFilenameType</type>
						<pipe-help>A list of source files to move - paired one by one with To-Files</pipe-help>
					</pipe>
					<pipe>
						<name>To-Files</name>
						<type>uk.ac.ic.doc.kevlar.core.types.textType.IFilenameType</type>
						<pipe-help>A list of destinations to move Source-Files to - paired one by one with From-Files</pipe-help>
					</pipe>
				</input-pipes>
				<output-pipes>
				    <pipe>
				        <name>Success</name>
                        <type>uk.ac.ic.doc.kevlar.core.types.textType.IFilenameType</type>
						<pipe-help>A list of files that have successfully been created</pipe-help>
				    </pipe>
				    <pipe>
				        <name>Error</name>
				        <type>uk.ac.ic.doc.kevlar.core.types.textType.IFilenameType</type>
						<pipe-help>File names that failed to be created</pipe-help>
				    </pipe>  
				</output-pipes>
			</mapping>
			
			<mapping>
				<conditions>
				</conditions>
				<input-pipes>
				</input-pipes>
				<output-pipes>
				</output-pipes>
			</mapping>
			
		</mappings>
		
	</argument-model>
	
	<description-model>
		<name>Move-Files</name>
		<version>
			<major>1</major>
			<minor>0</minor>
	    </version>
		<description>Move one or more files to a new location</description>
		<author>Kevlar Group</author>
		<copyright>
			<name>Kevlar Group</name>
			<year>2004</year>
		</copyright>
		<keywords>
			<keyword>mv</keyword>
			<keyword>move</keyword>
			<keyword>cut</keyword>
			<keyword>paste</keyword>
			<keyword>change</keyword>
			<keyword>change</keyword>
		</keywords>
		<program-help></program-help>
	</description-model>
	
	<return-model>
		<return-mappings>
			<return-mapping>
				<value>0</value>
				<message>Worked</message>
				<is-good />
			</return-mapping>
			<return-mapping>
				<value>1</value>
				<message>Unexpected error</message>
			</return-mapping>
			<return-mapping>
				<value>2</value>
				<message>Source-Files input not connected</message>
			</return-mapping>
			<return-mapping>
				<value>3</value>
				<message>Destination-Files input not connected</message>
			</return-mapping>
		</return-mappings>
	</return-model>
</program>