C# Class Duplicity.Filtering.Aggregation.FileSystemChangeStateMachine

Simple state machine to aggregate a finite number of file system changes to a single resultant change
ファイルを表示 Open project: slashdotdash/Duplicity

Public Methods

Method Description
Get ( FileSystemChangeType initial, FileSystemChangeType action ) : FileSystemChangeType

Get the resultant file system change from the given initial state and action to apply.

Private Methods

Method Description
Configure ( FileSystemChangeType initialState ) : ConfigurationBuilder

Configure the permitted actions and their result for a given initiat state.

FileSystemChangeStateMachine ( ) : System

| Action | Inital State | Created | Changed | Deleted | -------------|---------|---------|---------| None | Created | Changed | Deleted | Created | - | Created | None | Changed | - | Changed | Deleted | Deleted | Changed | - | - |

Method Details

Get() public static method

Get the resultant file system change from the given initial state and action to apply.
public static Get ( FileSystemChangeType initial, FileSystemChangeType action ) : FileSystemChangeType
initial FileSystemChangeType
action FileSystemChangeType
return FileSystemChangeType