NetworkFolder¶
Type ISIAPINetworkFolder · Interface
Namespace SIDRASolutions.SI.API
Assembly SIDRASolutions.SI.API.dll
COM CLSID C9D53985-EBE9-45CC-8880-3A5684768C62
NetworkFolder wrapper interface
Declaration¶
Members¶
Properties
| Property | Type | Summary |
|---|---|---|
| Name | string |
NetworkFolder name |
| Position | int |
This NetworkFolder Position in the collection. It is a zero-base integer. |
| Networks | ISIAPINetworks |
Collection of Networks in this NetworkFolder |
| Project | ISIAPIProject |
|
| IsExpanded | bool |
Flag indicating whether this folder is expanded. |
Methods
| Method | Returns | Summary |
|---|---|---|
| AddNetwork(int) | ISIAPINetwork |
Create a new Network and add into this NetworkFolder. The new Network does not include any Sites. It is created by using a Standard Software Setup. |
| AddNetwork(string) | ISIAPINetwork |
Create a new Network and add into this NetworkFolder. The new Network does not include any Sites. It is created by using a User Software Setup or a Standard Software Setup. The Software Setup is identified by the string parameter softwareSetupSignature. |
| RemoveNetwork(ISIAPINetwork) | bool |
Remove a Network from this NetworkFolder. |
| CloneNetwork(ISIAPINetwork) | ISIAPINetwork |
Clone a Network. |
| CloneNetworkWithSites(ISIAPINetwork) | ISIAPINetwork |
Clone a Network with its Sites. |
| MoveNetworkTo(ISIAPINetwork, int) | bool |
Move a Network to a new position in the same NetworkFolder. |
| MoveNetworksToFolder(string, ISIAPINetworkFolder) | int |
Move Network(s) from this Network Folder to another Network Folder in this Project. |
| AddAssignNetwork(ISIAPINetwork, ISIAPIAssignVolumeBin) | ISIAPINetwork |
Create a new Assign Network from a clone of the source Network and add it into this NetworkFolder. |
Properties¶
Name¶
NetworkFolder name
Type string
Value
The NetworkFolder name, max length = 100.
Code samples
Position¶
This NetworkFolder Position in the collection. It is a zero-base integer.
Type int
Code samples
Networks¶
Collection of Networks in this NetworkFolder
Type ISIAPINetworks
Value
Networks collection
Code samples
Project¶
Type ISIAPIProject
Code samples
IsExpanded¶
Flag indicating whether this folder is expanded.
Type bool
Code samples
Methods¶
AddNetwork(int)¶
Create a new Network and add into this NetworkFolder. The new Network does not include any Sites. It is created by using a Standard Software Setup.
Parameters
| Name | Type | Description |
|---|---|---|
softwareSetup |
int |
One of: - Standard Software Setup that is used to create the Network - 1 - Standard Left - 2 - New Zealand - 3 - New South Wales - 4 - Standard Right - 5 - US HCM (Metric) - 6 - US HCM (Customary) |
Returns ISIAPINetwork - The new added Network.
Code samples
AddNetwork(string)¶
Create a new Network and add into this NetworkFolder. The new Network does not include any Sites. It is created by using a User Software Setup or a Standard Software Setup. The Software Setup is identified by the string parameter softwareSetupSignature.
Parameters
| Name | Type | Description |
|---|---|---|
softwareSetupSignature |
string |
The signature string of a User Software Setup or a Standard Software Setup. |
Returns ISIAPINetwork - The new added Network.
Code samples
RemoveNetwork(ISIAPINetwork)¶
Remove a Network from this NetworkFolder.
Parameters
| Name | Type | Description |
|---|---|---|
network |
ISIAPINetwork |
The Network to remove. |
Returns bool - true if the Network is successfully removed; otherwise, false. This method also returns false if the Network does not exist in this Project.
Code samples
CloneNetwork(ISIAPINetwork)¶
Clone a Network.
Parameters
| Name | Type | Description |
|---|---|---|
network |
ISIAPINetwork |
The Network to be cloned. |
Returns ISIAPINetwork - The new cloned Network.
Remarks
This funciton will create a new Network with the same Sites as those in the original Network, i.e. the Sites will not be cloned.
Code samples
CloneNetworkWithSites(ISIAPINetwork)¶
Clone a Network with its Sites.
Parameters
| Name | Type | Description |
|---|---|---|
network |
ISIAPINetwork |
The Network to be cloned. |
Returns ISIAPINetwork - The new cloned Network.
Remarks
This function will clone the Network and its Sites as well, i.e. there will be new cloned Sites in the new cloned Network.
Code samples
MoveNetworkTo(ISIAPINetwork, int)¶
Move a Network to a new position in the same NetworkFolder.
Parameters
| Name | Type | Description |
|---|---|---|
network |
ISIAPINetwork |
The Network to move. |
newPosition |
int |
The zero-based position that the Network should be moved to. |
Returns bool - true if the Network is successfully moved; otherwise, false. This method also returns false if the Network does not exist in this Project.
Code samples
MoveNetworksToFolder(string, ISIAPINetworkFolder)¶
Move Network(s) from this Network Folder to another Network Folder in this Project.
Parameters
| Name | Type | Description |
|---|---|---|
networkNames |
string |
The name(s) of the Network(s) to move. Use semicolon ";" to separate the names. If a name already has ";", replace each ";" with ";;". For examples: |
destFolder |
ISIAPINetworkFolder |
The destination Network Folder |
Returns int - The number of successfully moved Networks
Code samples
AddAssignNetwork(ISIAPINetwork, ISIAPIAssignVolumeBin)¶
Create a new Assign Network from a clone of the source Network and add it into this NetworkFolder.
Parameters
| Name | Type | Description |
|---|---|---|
sourceNetwork |
ISIAPINetwork |
a Basic Network to be cloned, the cloned Network is used to create an Assign Network |
assignVolBin |
ISIAPIAssignVolumeBin |
an Assign Volume Bin that links to the new Assign Network |
Returns ISIAPINetwork - The new added Assign Network.
Remarks
The Source Network is cloned, and relevant data is added to create the new Assign Network. This Assign Network is then placed immediately after the Source Network within the same folder.
The Assign Network is linked to the Assign Volume Bin that is specified in the parameters. The Assign Scheme Zones are added and linked to the Assign Zones in the Bin. The Assign Scheme Zone Connections to the Network Sites need to be added later by calling the method ISIAPIAssignSchemeZone.AddAssignSchemeZoneConnection(). An Assign Scenario is created automatically and is linked to the first O-D Volume Set in the Assign Volume Bin. The linked O-D Volume Set can be changed later by setting the property ISIAPIAssignSchemeDemandScenario.AssignVolumeSet. More Scenarios can be added later by calling the method ISIAPIAssignScheme.AddAssignSchemeDemandScenario().
The Assign Network can be cloned, removed, or moved by calling the methods in this folder in the same way as a Basic Network.