Packagemain.model.vo
Classpublic class SharedObjectVO
InheritanceSharedObjectVO Inheritance Object
Implements ISharedObject, flash.events.IEventDispatcher



Public Properties
 PropertyDefined By
  bootstrapPeer : String
SharedObjectVO
  chunksCount : uint
[read-only]
SharedObjectVO
  completeness : Number
SharedObjectVO
  descriptor : ISharedObjectDescriptor
SharedObjectVO
  elementID : String
[read-only]
SharedObjectVO
  fileReference : FileReference
[read-only]
SharedObjectVO
  groupSpec : IGroupSpec
SharedObjectVO
  name : String
SharedObjectVO
  netGroupIDs : ArrayList
[read-only]
SharedObjectVO
  peersCount : uint
SharedObjectVO
  receiveBytesPerSecond : Number
SharedObjectVO
  sendBytesPerSecond : Number
SharedObjectVO
  sha256 : String
[read-only]
SharedObjectVO
  size : Number
SharedObjectVO
Public Methods
 MethodDefined By
  
SharedObjectVO(fileReference:FileReference = null)
SharedObjectVO
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void
SharedObjectVO
  
dispatchEvent(event:Event):Boolean
SharedObjectVO
  
getChunk(index:uint):Object
SharedObjectVO
  
SharedObjectVO
  
SharedObjectVO
  
hasEventListener(type:String):Boolean
SharedObjectVO
  
rebuild():ByteArray
SharedObjectVO
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
SharedObjectVO
  
setChunk(object:Object, index:uint):void
SharedObjectVO
  
setChunksLength(length:uint):void
SharedObjectVO
  
verify(data:ByteArray):Boolean
SharedObjectVO
  
willTrigger(type:String):Boolean
SharedObjectVO
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


Implementation
    public function get descriptor():ISharedObjectDescriptor
    public function set descriptor(value:ISharedObjectDescriptor):void
elementIDproperty 
elementID:String  [read-only]


Implementation
    public function get elementID():String
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


Implementation
    public function get name():String
    public function set name(value:String):void
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
Constructor Detail
SharedObjectVO()Constructor
public function SharedObjectVO(fileReference:FileReference = null)



Parameters
fileReference:FileReference (default = null)
Method Detail
addEventListener()method
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)
 
weakRef:Boolean (default = false)

dispatchEvent()method 
public function dispatchEvent(event:Event):Boolean

Parameters

event:Event

Returns
Boolean
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
hasEventListener()method 
public function hasEventListener(type:String):Boolean

Parameters

type:String

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

Returns
ByteArray
removeEventListener()method 
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)

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
willTrigger()method 
public function willTrigger(type:String):Boolean

Parameters

type:String

Returns
Boolean