Packagemain.model.interfaces
Interfacepublic interface ISharedObject extends IListElement
Implementors SharedObjectVO



Public Properties
 PropertyDefined By
  bootstrapPeer : String
ISharedObject
  chunksCount : uint
[read-only]
ISharedObject
  completeness : Number
ISharedObject
  descriptor : ISharedObjectDescriptor
[read-only]
ISharedObject
 InheritedelementID : String
[read-only]
IListElement
  fileReference : FileReference
[read-only]
ISharedObject
  groupSpec : IGroupSpec
ISharedObject
  name : String
[read-only]
ISharedObject
  netGroupIDs : ArrayList
[read-only]
ISharedObject
  peersCount : uint
ISharedObject
  receiveBytesPerSecond : Number
ISharedObject
  sendBytesPerSecond : Number
ISharedObject
  sha256 : String
[read-only]
ISharedObject
  size : Number
ISharedObject
Public Methods
 MethodDefined By
  
getChunk(index:uint):Object
ISharedObject
  
ISharedObject
  
ISharedObject
  
rebuild():ByteArray
ISharedObject
  
setChunk(object:Object, index:uint):void
ISharedObject
  
setChunksLength(length:uint):void
ISharedObject
  
verify(data:ByteArray):Boolean
ISharedObject
Property Detail
bootstrapPeerproperty
bootstrapPeer:String


Implementation
    public function get bootstrapPeer():String
    public function set bootstrapPeer(value:String):void
chunksCountproperty 
chunksCount:uint  [read-only]


Implementation
    public function get chunksCount():uint
completenessproperty 
completeness:Number


Implementation
    public function get completeness():Number
    public function set completeness(value:Number):void
descriptorproperty 
descriptor:ISharedObjectDescriptor  [read-only]


Implementation
    public function get descriptor():ISharedObjectDescriptor
fileReferenceproperty 
fileReference:FileReference  [read-only]


Implementation
    public function get fileReference():FileReference
groupSpecproperty 
groupSpec:IGroupSpec


Implementation
    public function get groupSpec():IGroupSpec
    public function set groupSpec(value:IGroupSpec):void
nameproperty 
name:String  [read-only]


Implementation
    public function get name():String
netGroupIDsproperty 
netGroupIDs:ArrayList  [read-only]


Implementation
    public function get netGroupIDs():ArrayList
peersCountproperty 
peersCount:uint


Implementation
    public function get peersCount():uint
    public function set peersCount(value:uint):void
receiveBytesPerSecondproperty 
receiveBytesPerSecond:Number


Implementation
    public function get receiveBytesPerSecond():Number
    public function set receiveBytesPerSecond(value:Number):void
sendBytesPerSecondproperty 
sendBytesPerSecond:Number


Implementation
    public function get sendBytesPerSecond():Number
    public function set sendBytesPerSecond(value:Number):void
sha256property 
sha256:String  [read-only]


Implementation
    public function get sha256():String
sizeproperty 
size:Number


Implementation
    public function get size():Number
    public function set size(value:Number):void
Method Detail
getChunk()method
public function getChunk(index:uint):Object

Parameters

index:uint

Returns
Object
getHaveObjects()method 
public function getHaveObjects():Array

Returns
Array
getWantObjects()method 
public function getWantObjects():Array

Returns
Array
rebuild()method 
public function rebuild():ByteArray

Returns
ByteArray
setChunk()method 
public function setChunk(object:Object, index:uint):void

Parameters

object:Object
 
index:uint

setChunksLength()method 
public function setChunksLength(length:uint):void

Parameters

length:uint

verify()method 
public function verify(data:ByteArray):Boolean

Parameters

data:ByteArray

Returns
Boolean