///|
/// The largest metadata nesting depth that `SwimlaneLimits` accepts.
pub let max_metadata_depth : Int32 = 256
///|
/// The resource limits for swimlane and flowchart sources. Reading, printing and
/// conversion stop with a finding when a limit is exceeded.
#derive(Eq, Debug)
pub struct SwimlaneLimits {
source : Int32
output : Int32
nodes : Int32
edges : Int32
depth : Int32
work : Int32
diagnostics : Int32
metadata_depth : Int32
metadata_work : Int32
}
///|
pub fn SwimlaneLimits::new(
source~ : Int32 = 16777216,
output~ : Int32 = 16777216,
nodes~ : Int32 = 10000,
edges~ : Int32 = 50000,
depth~ : Int32 = 256,
work~ : Int32 = 1000000,
diagnostics~ : Int32 = 256,
metadata_depth~ : Int32 = max_metadata_depth,
metadata_work~ : Int32 = 1000000,
) -> SwimlaneLimits {
{
source,
output,
nodes,
edges,
depth,
work,
diagnostics,
metadata_depth,
metadata_work,
}
}
///|
/// The resource limits for state diagram sources.
#derive(Eq, Debug)
pub struct StateLimits {
source : Int32
output : Int32
states : Int32
regions : Int32
transitions : Int32
depth : Int32
diagnostics : Int32
work : Int32
}
///|
pub fn StateLimits::new(
source~ : Int32 = 16777216,
output~ : Int32 = 16777216,
states~ : Int32 = 10000,
regions~ : Int32 = 10000,
transitions~ : Int32 = 50000,
depth~ : Int32 = 256,
diagnostics~ : Int32 = 256,
work~ : Int32 = 1000000,
) -> StateLimits {
{ source, output, states, regions, transitions, depth, diagnostics, work, }
}
///|
/// The resource limits for ZenUML sources.
#derive(Eq, Debug)
pub struct ZenumlLimits {
source : Int32
output : Int32
participants : Int32
events : Int32
depth : Int32
diagnostics : Int32
work : Int32
}
///|
pub fn ZenumlLimits::new(
source~ : Int32 = 16777216,
output~ : Int32 = 16777216,
participants~ : Int32 = 10000,
events~ : Int32 = 50000,
depth~ : Int32 = 256,
diagnostics~ : Int32 = 256,
work~ : Int32 = 1000000,
) -> ZenumlLimits {
{ source, output, participants, events, depth, diagnostics, work, }
}
///|
/// The resource limits for architecture sources.
#derive(Eq, Debug)
pub struct ArchitectureLimits {
source : Int32
output : Int32
nodes : Int32
edges : Int32
alignments : Int32
depth : Int32
diagnostics : Int32
work : Int32
}
///|
pub fn ArchitectureLimits::new(
source~ : Int32 = 16777216,
output~ : Int32 = 16777216,
nodes~ : Int32 = 10000,
edges~ : Int32 = 50000,
alignments~ : Int32 = 10000,
depth~ : Int32 = 256,
diagnostics~ : Int32 = 256,
work~ : Int32 = 1000000,
) -> ArchitectureLimits {
{ source, output, nodes, edges, alignments, depth, diagnostics, work, }
}
///|
pub extend SwimlaneLimits with Eq::{equal, not_equal}
///|
pub extend SwimlaneLimits with @debug.Debug::{to_repr}
///|
pub extend StateLimits with Eq::{equal, not_equal}
///|
pub extend StateLimits with @debug.Debug::{to_repr}
///|
pub extend ZenumlLimits with Eq::{equal, not_equal}
///|
pub extend ZenumlLimits with @debug.Debug::{to_repr}
///|
pub extend ArchitectureLimits with Eq::{equal, not_equal}
///|
pub extend ArchitectureLimits with @debug.Debug::{to_repr}