FRAMES NO FRAMES

Class IlcResourceTextureIterator

Definition file: ilsched/texture.h
Include file: <ilsched/ilsched.h>

An instance of IlcResourceTextureIterator can be used to examine the criticality and aggregate demand curves represented by an instance of IlcResourceTexture.

See Also:

Constructor Summary
public IlcResourceTextureIterator(const IlcResourceTexture texture)
public IlcResourceTextureIterator(const IlcResourceTexture texture, IlcFloat time)
Method Summary
public IlcFloatgetCriticality() const
public IlcFloatgetDemand() const
public IlcFloatgetDemandDiscontinuity() const
public IlcFloatgetDemandSlope() const
public IlcFloatgetTime() const
public IlcBoolok() const
public voidoperator++()
public voidoperator--()
Constructor Detail

IlcResourceTextureIterator

public IlcResourceTextureIterator(const IlcResourceTexture texture)

This constructor creates an iterator to traverse texture. The iterator initially points to the first segment of the texture curve.


IlcResourceTextureIterator

public IlcResourceTextureIterator(const IlcResourceTexture texture, IlcFloat time)

This constructor creates an iterator to traverse texture. The iterator initially points to the segment of the texture curve containing time.


Method Detail

getCriticality

public IlcFloat getCriticality() const

This member function returns the value of the criticality at the start time of the current segment of the texture curve pointed to by the invoking iterator.


getDemand

public IlcFloat getDemand() const

This member function returns the value of the aggregate demand at the start time of the current segment of the texture curve pointed to by the invoking iterator.


getDemandDiscontinuity

public IlcFloat getDemandDiscontinuity() const

This member function returns the discontinuity of the aggregate demand at the start time of the current segment of the texture curve pointed to by the invoking iterator.


getDemandSlope

public IlcFloat getDemandSlope() const

This member function returns the slope of the aggregate demand at the start time of the current segment of the texture curve pointed by the invoking iterator.


getTime

public IlcFloat getTime() const

This member function returns the start time of the current segment of the texture curve pointed to by the invoking iterator.


ok

public IlcBool ok() const

This member function returns IlcFalse if the iterator does not currently indicate a segment included in the texture curve. Otherwise, it returns IlcTrue.


operator++

public void operator++()

This operator moves the iterator to the segment adjacent to the current segment of the texture curve (forward move).


operator--

public void operator--()

This operator moves the iterator to the segment adjacent to the current segment of the texture curve (backward move).