C# Class SirCachealot.Database.MySqlDBlockStore

Inheritance: System.MarshalByRefObject, DBlockStore
Mostra file Open project: ColdMatter/EDMSuite Class Usage Examples

Public Properties

Property Type Description
DBlockCount long
QueryCount long

Public Methods

Method Description
AddDBlock ( DemodulatedBlock db ) : UInt32
AddTagToBlock ( string clusterName, int blockIndex, string tag ) : void
GetAllUIDs ( ) : System.UInt32[]
GetDBlock ( uint uid ) : DemodulatedBlock
GetTaggedIndicesForCluster ( string clusterName, string tag ) : System.UInt32[]
GetUIDsByAnalysisTag ( string tag ) : System.UInt32[]
GetUIDsByAnalysisTag ( string tag, UInt32 fromUIDs ) : System.UInt32[]
GetUIDsByBState ( bool bState ) : System.UInt32[]
GetUIDsByBState ( bool bState, UInt32 fromUIDs ) : System.UInt32[]
GetUIDsByBlock ( string clusterName, int clusterIndex ) : System.UInt32[]
GetUIDsByBlock ( string clusterName, int clusterIndex, UInt32 fromUIDs ) : System.UInt32[]
GetUIDsByCluster ( string clusterName ) : System.UInt32[]
GetUIDsByCluster ( string clusterName, UInt32 fromUIDs ) : System.UInt32[]
GetUIDsByDateRange ( System.DateTime start, System.DateTime end ) : uint[]
GetUIDsByDateRange ( System.DateTime start, System.DateTime end, uint fromUIDs ) : uint[]
GetUIDsByEState ( bool eState ) : System.UInt32[]
GetUIDsByEState ( bool eState, UInt32 fromUIDs ) : System.UInt32[]
GetUIDsByMachineState ( bool eState, bool bState, bool rfState, uint fromUIDs ) : System.UInt32[]
GetUIDsByMachineState ( bool eState, bool bState, bool rfState ) : uint[]
GetUIDsByPredicate ( PredicateFunction func, uint fromUIDs ) : uint[]
GetUIDsByRFState ( bool rfState ) : System.UInt32[]
GetUIDsByRFState ( bool rfState, UInt32 fromUIDs ) : System.UInt32[]
GetUIDsByTag ( string tag ) : System.UInt32[]
GetUIDsByTag ( string tag, UInt32 fromUIDs ) : System.UInt32[]
GetUIDsByVoltageRange ( double low, double high ) : System.UInt32[]
GetUIDsByVoltageRange ( double low, double high, UInt32 fromUIDs ) : System.UInt32[]
RemoveDBlock ( UInt32 uid ) : void
RemoveTagFromBlock ( string clusterName, int blockIndex, string tag ) : void

Private Methods

Method Description
Connect ( string dbName ) : void
CreateDatabase ( string dbName ) : void
GetByStringParameter ( string parameter, string val ) : System.UInt32[]
GetByStringParameter ( string parameter, string val, UInt32 fromUIDs ) : System.UInt32[]
GetDatabaseList ( ) : List
GetUIDsFromCommand ( MySqlCommand cm ) : System.UInt32[]
GetUIntsFromCommand ( MySqlCommand cm, string column ) : System.UInt32[]
MakeSQLArrayString ( UInt32 uids ) : string
Start ( ) : void
Stop ( ) : void
deserializeDBlockFromByteArray ( byte ba ) : DemodulatedBlock
executeNonQuery ( string command ) : int
executeReader ( string command ) : MySqlDataReader
serializeDBlockAsByteArray ( DemodulatedBlock db ) : byte[]

Method Details

AddDBlock() public method

public AddDBlock ( DemodulatedBlock db ) : UInt32
db Analysis.EDM.DemodulatedBlock
return System.UInt32

AddTagToBlock() public method

public AddTagToBlock ( string clusterName, int blockIndex, string tag ) : void
clusterName string
blockIndex int
tag string
return void

GetAllUIDs() public method

public GetAllUIDs ( ) : System.UInt32[]
return System.UInt32[]

GetDBlock() public method

public GetDBlock ( uint uid ) : DemodulatedBlock
uid uint
return Analysis.EDM.DemodulatedBlock

GetTaggedIndicesForCluster() public method

public GetTaggedIndicesForCluster ( string clusterName, string tag ) : System.UInt32[]
clusterName string
tag string
return System.UInt32[]

GetUIDsByAnalysisTag() public method

public GetUIDsByAnalysisTag ( string tag ) : System.UInt32[]
tag string
return System.UInt32[]

GetUIDsByAnalysisTag() public method

public GetUIDsByAnalysisTag ( string tag, UInt32 fromUIDs ) : System.UInt32[]
tag string
fromUIDs System.UInt32
return System.UInt32[]

GetUIDsByBState() public method

public GetUIDsByBState ( bool bState ) : System.UInt32[]
bState bool
return System.UInt32[]

GetUIDsByBState() public method

public GetUIDsByBState ( bool bState, UInt32 fromUIDs ) : System.UInt32[]
bState bool
fromUIDs System.UInt32
return System.UInt32[]

GetUIDsByBlock() public method

public GetUIDsByBlock ( string clusterName, int clusterIndex ) : System.UInt32[]
clusterName string
clusterIndex int
return System.UInt32[]

GetUIDsByBlock() public method

public GetUIDsByBlock ( string clusterName, int clusterIndex, UInt32 fromUIDs ) : System.UInt32[]
clusterName string
clusterIndex int
fromUIDs System.UInt32
return System.UInt32[]

GetUIDsByCluster() public method

public GetUIDsByCluster ( string clusterName ) : System.UInt32[]
clusterName string
return System.UInt32[]

GetUIDsByCluster() public method

public GetUIDsByCluster ( string clusterName, UInt32 fromUIDs ) : System.UInt32[]
clusterName string
fromUIDs System.UInt32
return System.UInt32[]

GetUIDsByDateRange() public method

public GetUIDsByDateRange ( System.DateTime start, System.DateTime end ) : uint[]
start System.DateTime
end System.DateTime
return uint[]

GetUIDsByDateRange() public method

public GetUIDsByDateRange ( System.DateTime start, System.DateTime end, uint fromUIDs ) : uint[]
start System.DateTime
end System.DateTime
fromUIDs uint
return uint[]

GetUIDsByEState() public method

public GetUIDsByEState ( bool eState ) : System.UInt32[]
eState bool
return System.UInt32[]

GetUIDsByEState() public method

public GetUIDsByEState ( bool eState, UInt32 fromUIDs ) : System.UInt32[]
eState bool
fromUIDs System.UInt32
return System.UInt32[]

GetUIDsByMachineState() public method

public GetUIDsByMachineState ( bool eState, bool bState, bool rfState, uint fromUIDs ) : System.UInt32[]
eState bool
bState bool
rfState bool
fromUIDs uint
return System.UInt32[]

GetUIDsByMachineState() public method

public GetUIDsByMachineState ( bool eState, bool bState, bool rfState ) : uint[]
eState bool
bState bool
rfState bool
return uint[]

GetUIDsByPredicate() public method

public GetUIDsByPredicate ( PredicateFunction func, uint fromUIDs ) : uint[]
func PredicateFunction
fromUIDs uint
return uint[]

GetUIDsByRFState() public method

public GetUIDsByRFState ( bool rfState ) : System.UInt32[]
rfState bool
return System.UInt32[]

GetUIDsByRFState() public method

public GetUIDsByRFState ( bool rfState, UInt32 fromUIDs ) : System.UInt32[]
rfState bool
fromUIDs System.UInt32
return System.UInt32[]

GetUIDsByTag() public method

public GetUIDsByTag ( string tag ) : System.UInt32[]
tag string
return System.UInt32[]

GetUIDsByTag() public method

public GetUIDsByTag ( string tag, UInt32 fromUIDs ) : System.UInt32[]
tag string
fromUIDs System.UInt32
return System.UInt32[]

GetUIDsByVoltageRange() public method

public GetUIDsByVoltageRange ( double low, double high ) : System.UInt32[]
low double
high double
return System.UInt32[]

GetUIDsByVoltageRange() public method

public GetUIDsByVoltageRange ( double low, double high, UInt32 fromUIDs ) : System.UInt32[]
low double
high double
fromUIDs System.UInt32
return System.UInt32[]

RemoveDBlock() public method

public RemoveDBlock ( UInt32 uid ) : void
uid System.UInt32
return void

RemoveTagFromBlock() public method

public RemoveTagFromBlock ( string clusterName, int blockIndex, string tag ) : void
clusterName string
blockIndex int
tag string
return void

Property Details

DBlockCount public_oe property

public long DBlockCount
return long

QueryCount public_oe property

public long QueryCount
return long